bcachefs: bch2_lookup() gives better error message on inode not found
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 25 Jan 2024 17:36:37 +0000 (12:36 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 10 Mar 2024 19:34:09 +0000 (15:34 -0400)
commit737cd174d1666620f2c41a4552623125de6bd80d
tree67acfaf39ef3631895650cd8ec8b24eb8fb3ae4c
parenta91bc5e50558fdc09a04c90484633df100d0d2bb
bcachefs: bch2_lookup() gives better error message on inode not found

When a dirent points to a missing inode, we really should print out the
dirent.

This requires quite a bit of refactoring, but there's some other
benefits: we now do the entire looup (dirent and inode) in a single
btree transaction, and copy to the VFS inode with btree locks still
held, like the create path.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c