• Kent Overstreet's avatar
    bcachefs: __lookup_dirent() works in snapshot, not subvol · d2fda304
    Kent Overstreet authored
    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>
    d2fda304
str_hash.h 9.39 KB