]> Gentwo Git Trees - linux/.git/commit
btrfs: don't search back for dir inode item in INO_LOOKUP_USER
authorJosef Bacik <josef@toxicpanda.com>
Tue, 18 Nov 2025 16:08:43 +0000 (17:08 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 25 Nov 2025 00:53:27 +0000 (01:53 +0100)
commit70085399b1a1623ef488d96b4c2d0c67be1d0607
treefbc29536a7526adacbde772ed2f5bb1ab594b836
parent0185c2292c600993199bc6b1f342ad47a9e8c678
btrfs: don't search back for dir inode item in INO_LOOKUP_USER

We don't need to search back to the inode item, the directory inode
number is in key.offset, so simply use that.  If we can't find the
directory we'll get an ENOENT at the iget().

Note: The patch was taken from v5 of fscrypt patchset
(https://lore.kernel.org/linux-btrfs/cover.1706116485.git.josef@toxicpanda.com/)
which was handled over time by various people: Omar Sandoval, Sweet Tea
Dorminy, Josef Bacik.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Daniel Vacek <neelx@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add note ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c