]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove redundant path release in btrfs_find_orphan_roots()
authorFilipe Manana <fdmanana@suse.com>
Tue, 16 Dec 2025 12:02:18 +0000 (12:02 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:49:11 +0000 (07:49 +0100)
commit19231903711e412dd2fe383dac0e48e5919bba4b
tree43711622292e82931febc5b9d76ab8c5bb4a13ee
parent8670a25ecb2fbc35d4e58f8f522e7d5b735d6778
btrfs: remove redundant path release in btrfs_find_orphan_roots()

There's no need to release the path in the if branch used when the root
does not exists since we released the path before the call to
btrfs_get_fs_root(). So remove that redundant btrfs_release_path() call.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
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/root-tree.c