Commit a56c6171 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 0f64a6da
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment