summaryrefslogtreecommitdiff
path: root/fs/bcachefs/disk_accounting_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/disk_accounting_format.h')
-rw-r--r--fs/bcachefs/disk_accounting_format.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/bcachefs/disk_accounting_format.h b/fs/bcachefs/disk_accounting_format.h
index 090108a4e0a5..f95f6ab07aaa 100644
--- a/fs/bcachefs/disk_accounting_format.h
+++ b/fs/bcachefs/disk_accounting_format.h
@@ -101,7 +101,8 @@ static inline bool data_type_is_hidden(enum bch_data_type type)
x(dev_data_type, 3) \
x(dev_stripe_buckets, 4) \
x(compression, 5) \
- x(snapshot, 6)
+ x(snapshot, 6) \
+ x(btree, 7)
enum disk_accounting_type {
#define x(f, nr) BCH_DISK_ACCOUNTING_##f = nr,
@@ -134,6 +135,10 @@ struct bch_acct_snapshot {
__u32 id;
};
+struct bch_acct_btree {
+ __u32 id;
+};
+
struct disk_accounting_pos {
union {
struct {
@@ -146,6 +151,7 @@ struct disk_accounting_pos {
struct bch_dev_stripe_buckets dev_stripe_buckets;
struct bch_acct_compression compression;
struct bch_acct_snapshot snapshot;
+ struct bch_acct_btree btree;
};
};
struct bpos _pad;