summaryrefslogtreecommitdiff
path: root/fs/bcachefs/disk_accounting_format.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-12 02:17:02 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-07-14 19:00:14 -0400
commit6675c37662341cf1a2e3b502a4dafbf7571978b2 (patch)
tree8f9f1a64524acb950dca3d99bf82292644c6b5d4 /fs/bcachefs/disk_accounting_format.h
parent72c277878031a988ca472aa41370488c726d33b0 (diff)
bcachefs: bch_acct_snapshot
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
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 2ded8ae65001..355b8545df88 100644
--- a/fs/bcachefs/disk_accounting_format.h
+++ b/fs/bcachefs/disk_accounting_format.h
@@ -100,7 +100,8 @@ static inline bool data_type_is_hidden(enum bch_data_type type)
x(persistent_reserved, 1) \
x(replicas, 2) \
x(dev_data_type, 3) \
- x(compression, 4)
+ x(compression, 4) \
+ x(snapshot, 5)
enum disk_accounting_type {
#define x(f, nr) BCH_DISK_ACCOUNTING_##f = nr,
@@ -129,6 +130,10 @@ struct bch_acct_compression {
__u8 type;
};
+struct bch_acct_snapshot {
+ __u32 id;
+};
+
struct disk_accounting_pos {
union {
struct {
@@ -140,6 +145,7 @@ struct disk_accounting_pos {
struct bch_dev_data_type dev_data_type;
struct bch_dev_stripe_buckets dev_stripe_buckets;
struct bch_acct_compression compression;
+ struct bch_acct_snapshot snapshot;
};
};
struct bpos _pad;