Commit 872c0311 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix bch2_check_extents_to_backpointers()



In rare cases, bch2_check_extents_to_backpointers() would incorrectly
flag an extent has having a missing backpointer when we just needed to
flush the btree write buffer - we weren't tracking the last flushed
position correctly.

This adds a level field to the last_flushed pos, fixing a bug where we'd
sometimes fail on a new root node.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent c639c29c
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