summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/replicas_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-02-05 14:07:34 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:50 -0400
commit464b415539cc543addb45b85e76c44da145b114c (patch)
treed24baa17293d6b4494df07c60731190e3fc4eb7c /fs/bcachefs/replicas_types.h
parent4e3d18991a7d1138604f0975e7849d9a2d82c524 (diff)
downloadlinux-464b415539cc543addb45b85e76c44da145b114c.tar.gz
linux-464b415539cc543addb45b85e76c44da145b114c.tar.bz2
linux-464b415539cc543addb45b85e76c44da145b114c.zip
bcachefs: Fix bch2_trans_reset_updates()
This should have been resetting trans->fs_usage_deltas as well. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
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 */