summaryrefslogtreecommitdiff
path: root/fs/bcachefs/replicas_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/replicas_types.h')
-rw-r--r--fs/bcachefs/replicas_types.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/bcachefs/replicas_types.h b/fs/bcachefs/replicas_types.h
index f12a35b3dbcf..5cfff489bbc3 100644
--- a/fs/bcachefs/replicas_types.h
+++ b/fs/bcachefs/replicas_types.h
@@ -8,4 +8,20 @@ struct bch_replicas_cpu {
struct bch_replicas_entry *entries;
};
+struct replicas_delta {
+ s64 delta;
+ struct bch_replicas_entry r;
+} __packed;
+
+struct replicas_delta_list {
+ unsigned size;
+ unsigned used;
+
+ struct {} memset_start;
+ u64 nr_inodes;
+ u64 persistent_reserved[BCH_REPLICAS_MAX];
+ struct {} memset_end;
+ struct replicas_delta d[0];
+};
+
#endif /* _BCACHEFS_REPLICAS_TYPES_H */