]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Make backpointer fsck wb flush check more rigorous
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 30 Nov 2023 07:16:19 +0000 (02:16 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:39 +0000 (11:47 -0500)
commita56c61714a2d2e548f5c3792130149159e0657ed
treeaeaedd613e1bf30e90379744d01e44cbbb6eca17
parent0f64a6daaa4852db735a2df754b37d187f5480d1
bcachefs: Make backpointer fsck wb flush check more rigorous

backpointers fsck now always runs in rw mode - the btree is being
modified while it runs, by e.g. copygc, rebalance, the discard worker,
the invalidate worker.

We could find a missing backpointer, flush the btree write buffer, and
then on the next iteration find a new key at the exact same position -
which will most likely need another write buffer flush.

Hence, we have to check for an exact match on last_flushed, not just the
pos.

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