bcachefs: bch2_trans_account_disk_usage_change()
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 11 Nov 2023 20:08:36 +0000 (15:08 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 21 Jan 2024 11:01:45 +0000 (06:01 -0500)
commit5b14ce35af901853e91e186f34e71f31b08b4e0a
tree6c5464e7a69f911a18de19e6103c798460fef1b7
parent8e7834a8831678d0825895d7f5a02ad0b29bbcde
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>
fs/bcachefs/btree_trans_commit.c
fs/bcachefs/buckets.c
fs/bcachefs/buckets.h