]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bcachefs: Fix accounting_read when we rewind
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 25 Nov 2024 03:28:41 +0000 (22:28 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:19 +0000 (01:36 -0500)
commitb71d89bd7b1fbe0a4569d072a0069110f60f9ec9
tree0cc6f0aad654b1a5e770f1503407b7af52816444
parenta7ecd5f2ccabb97174f8264b965c9597ea854e8f
bcachefs: Fix accounting_read when we rewind

If we rewind recovery to run topology repair, that causes
accounting_read to run twice.

This fixes accounting being double counted.

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