]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Kill __bch2_accounting_mem_mod()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 12 Aug 2024 06:35:10 +0000 (02:35 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 14 Aug 2024 03:00:50 +0000 (23:00 -0400)
commit5132b99bb62664c02bd6c0dd62ad3fedc75294d8
treec328158f7523f588d99ab01985a7b3c49390c5de
parentd97de0d017cde0d442c3d144b4f969f43064cc0f
bcachefs: Kill __bch2_accounting_mem_mod()

The next patch will be adding a disk accounting counter type which is
not kept in the in-memory eytzinger tree.

As prep, fold __bch2_accounting_mem_mod() into
bch2_accounting_mem_mod_locked() so that we can check for that counter
type and bail out without calling bpos_to_disk_accounting_pos() twice.

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