]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix BCH_TRANS_COMMIT_skip_accounting_apply
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 26 Sep 2024 19:59:29 +0000 (15:59 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 28 Sep 2024 02:32:20 +0000 (22:32 -0400)
commita3581ca35d2b7e854e071dec2df7de7152aaa5c3
tree2d65177de2e41a0c6105eb368653f589bb4274f5
parentf8911ad88de3acea7a67451f59649bb54da0741b
bcachefs: Fix BCH_TRANS_COMMIT_skip_accounting_apply

This was added to avoid double-counting accounting keys in journal
replay. But applied incorrectly (easily done since it applies to the
transaction commit, not a particular update), it leads to skipping
in-mem accounting for real accounting updates, and failure to give them
a version number - which leads to journal replay becoming very confused
the next time around.

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