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

bcachefs: Use for_each_btree_key_upto() more consistently



It's important that in BTREE_ITER_FILTER_SNAPSHOTS mode we always use
peek_upto() and provide an end for the interval we're searching for -
otherwise, when we hit the end of the inode the next inode be in a
different subvolume and not have any keys in the current snapshot, and
we'd iterate over arbitrarily many keys before returning one.

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