bcachefs: Coalesce accounting in trans commit
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 17 May 2025 00:43:18 +0000 (20:43 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:15:06 +0000 (20:15 -0400)
commit7fd643c032ae0ced53d57fc23981c4d3d269d352
tree9452bb328a766da9d3000bd59797425765fd137a
parente8f9992b0aab188ce37ef011a3ec8613f02d05aa
bcachefs: Coalesce accounting in trans commit

Accounting has gotten quite heavy, and there's lots of redundancy in
accounting updates within a transaction, as we often add/delete multiple
extents that touch the same accountign counters.

This will reduce the amount of data that we journal, and reduce pressure
downstream on the btree write buffer.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/disk_accounting.c