]> www.infradead.org Git - nvme.git/commit
bcachefs: Fix accounting read + device removal
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 25 Sep 2024 20:46:06 +0000 (16:46 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 28 Sep 2024 01:46:35 +0000 (21:46 -0400)
commit9104fc1928704ee5708ec7f43ab8dfbdc66e2ce8
treefa342ec32f29263d315ccf1a6e49d03669b65d83
parent1e0272ef4774eed8314e8d10a8856c979deeaf35
bcachefs: Fix accounting read + device removal

accounting read was checking if accounting replicas entries were marked
in the superblock prior to applying accounting from the journal,
which meant that a recently removed device could spuriously trigger a
"not marked in superblocked" error (when journal entries zero out the
offending counter).

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