]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: set search_commit_root to false in iterate_inodes_from_logical()
authorFilipe Manana <fdmanana@suse.com>
Tue, 1 Jul 2025 21:45:47 +0000 (22:45 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 22:09:20 +0000 (00:09 +0200)
commite560afc1a83ddcbb8b49cce544c10572458bf2e4
tree1d0f961cd55b06bcb4887b52e2b1c2aeaac8983e
parentaee10fe4e4f6d9e3444b4309ae2187ce4e9fb00f
btrfs: set search_commit_root to false in iterate_inodes_from_logical()

There's no point in checking at iterate_inodes_from_logical() if the path
has search_commit_root set, the only caller never sets search_commit_root
to true and it doesn't make sense for it ever to be true for the current
use case (logical_to_ino ioctl). So stop checking for that and since the
only caller allocates the path just for it to be used by
iterate_inodes_from_logical(), move the path allocation into that function.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c
fs/btrfs/backref.h
fs/btrfs/ioctl.c