diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-17 08:03:45 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-21 14:01:45 +0300 |
commit | 8e7834a8831678d0825895d7f5a02ad0b29bbcde (patch) | |
tree | fa85c824684ae6d07c128723a626f788f2abebe3 /fs/bcachefs/buckets_types.h | |
parent | 4f564f4f9fdd4d120ee04678b0c22e40cc8b6b47 (diff) | |
download | linux-8e7834a8831678d0825895d7f5a02ad0b29bbcde.tar.xz |
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 'fs/bcachefs/buckets_types.h')
-rw-r--r-- | fs/bcachefs/buckets_types.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/fs/bcachefs/buckets_types.h b/fs/bcachefs/buckets_types.h index 783f71017204..6a31740222a7 100644 --- a/fs/bcachefs/buckets_types.h +++ b/fs/bcachefs/buckets_types.h @@ -45,23 +45,18 @@ struct bch_dev_usage { } d[BCH_DATA_NR]; }; -struct bch_fs_usage { - /* all fields are in units of 512 byte sectors: */ +struct bch_fs_usage_base { u64 hidden; u64 btree; u64 data; u64 cached; u64 reserved; u64 nr_inodes; +}; - /* XXX: add stats for compression ratio */ -#if 0 - u64 uncompressed; - u64 compressed; -#endif - - /* broken out: */ - +struct bch_fs_usage { + /* all fields are in units of 512 byte sectors: */ + struct bch_fs_usage_base b; u64 persistent_reserved[BCH_REPLICAS_MAX]; u64 replicas[]; }; |