diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-11 21:08:36 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-21 12:01:45 +0100 |
commit | 5b14ce35af901853e91e186f34e71f31b08b4e0a (patch) | |
tree | 6c5464e7a69f911a18de19e6103c798460fef1b7 /fs/bcachefs/buckets.h | |
parent | bcachefs: bch_fs_usage_base (diff) | |
download | linux-5b14ce35af901853e91e186f34e71f31b08b4e0a.tar.xz linux-5b14ce35af901853e91e186f34e71f31b08b4e0a.zip |
bcachefs: bch2_trans_account_disk_usage_change()
The disk space accounting rewrite is splitting out accounting for each
replicas set - those are moving to btree keys, instead of percpu
counters.
This breaks bch2_trans_fs_usage_apply() up, splitting out the part we
will still need.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r-- | fs/bcachefs/buckets.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/buckets.h b/fs/bcachefs/buckets.h index 2b1e907f2aca..6387e039f789 100644 --- a/fs/bcachefs/buckets.h +++ b/fs/bcachefs/buckets.h @@ -356,6 +356,8 @@ int bch2_trigger_reservation(struct btree_trans *, enum btree_id, unsigned, ret; \ }) +void bch2_trans_account_disk_usage_change(struct btree_trans *); + void bch2_trans_fs_usage_revert(struct btree_trans *, struct replicas_delta_list *); int bch2_trans_fs_usage_apply(struct btree_trans *, struct replicas_delta_list *); |