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

bcachefs: __lookup_dirent() works in snapshot, not subvol



Add a new helper, bch2_hash_lookup_in_snapshot(), for when we're not
operating in a subvolume and already have a snapshot ID, and then use it
in lookup_lostfound() -> __lookup_dirent().

This is a bugfix - lookup_lostfound() doesn't take a subvolume ID, we
were passing a nonsense subvolume ID before, and don't have one to pass
since we may be operating in an interior snapshot node that doesn't have
a subvolume ID.

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