Skip to content
Commit 3e72acb7 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Ensure btree node scan runs before checking for scanned nodes



Previously, calling bch2_btree_has_scanned_nodes() when btree node
scan hadn't actually run would erroniously return false - causing us to
think a btree was entirely gone.

This fixes a 6.16 regression from moving the scheduling of btree node
scan out of bch2_btree_lost_data() (fixing the bug where we'd schedule
it persistently in the superblock) and only scheduling it when
check_toploogy() is asking for scanned btree nodes.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 1dcea078
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment