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

bcachefs: check_extent(): don't use key_visible_in_snapshot()



This changes the main part of check_extents(), that checks the extent
against the corresponding inode, to not use key_visible_in_snapshot().

key_visible_in_snapshot() has to iterate over the list of ancestor
overwrites repeatedly calling bch2_snapshot_is_ancestor(), so this is a
significant performance improvement.

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