]> git.hungrycats.org Git - linux/commit
btrfs: hold a ref on the root in btrfs_search_path_in_tree_user
authorJosef Bacik <josef@toxicpanda.com>
Wed, 20 Nov 2019 18:50:21 +0000 (10:50 -0800)
committerJosef Bacik <josef@toxicpanda.com>
Fri, 6 Dec 2019 16:34:48 +0000 (08:34 -0800)
commit1bd052e8be4aeb39b5d8abcc94b202ddd3b20657
tree3839cca2700b152531104d0ab93030de0250ba6b
parentb298bd902d814da5793905fb621e9b63129c6f34
btrfs: hold a ref on the root in btrfs_search_path_in_tree_user

We can wander into a different root, so grab a ref on the root we look
up.  Later on we make root = fs_info->tree_root so we need this separate
out label to make sure we do the right cleanup only in the case we're
looking up a different root.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
fs/btrfs/ioctl.c