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)
commit88234012beaaf677dc6d3e685d270acc1bb56a03
treef9942ac3800577159bc0ee5a6627fba6aabf1910
parent3ca35e839e949811c7e35b7ef786de225a1c5008
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