]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: hold a ref on the root in btrfs_search_path_in_tree
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:34 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:28 +0000 (17:01 +0100)
commita7603323b48f22b1b55bc76a88fc3da9824afde1
treef9942ac3800577159bc0ee5a6627fba6aabf1910
parent2ab1310cee4e87e1706c59f765090f3d95e8d96e
btrfs: hold a ref on the root in btrfs_search_path_in_tree

We look up an arbitrary fs root, we need to hold a ref on it while we're
doing our search.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c