summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/sb-clean.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-11-17 06:03:45 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-21 12:01:45 +0100
commit8e7834a8831678d0825895d7f5a02ad0b29bbcde (patch)
treefa85c824684ae6d07c128723a626f788f2abebe3 /fs/bcachefs/sb-clean.c
parentbcachefs: bch2_prt_compression_type() (diff)
downloadlinux-8e7834a8831678d0825895d7f5a02ad0b29bbcde.tar.xz
linux-8e7834a8831678d0825895d7f5a02ad0b29bbcde.zip
bcachefs: bch_fs_usage_base
Split out base filesystem usage into its own type; prep work for breaking up bch2_trans_fs_usage_apply(). Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r--fs/bcachefs/sb-clean.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/sb-clean.c b/fs/bcachefs/sb-clean.c
index 9632f36f5f31..b6bf0ebe7e84 100644
--- a/fs/bcachefs/sb-clean.c
+++ b/fs/bcachefs/sb-clean.c
@@ -207,7 +207,7 @@ void bch2_journal_super_entries_add_common(struct bch_fs *c,
u->entry.type = BCH_JSET_ENTRY_usage;
u->entry.btree_id = BCH_FS_USAGE_inodes;
- u->v = cpu_to_le64(c->usage_base->nr_inodes);
+ u->v = cpu_to_le64(c->usage_base->b.nr_inodes);
}
{