commit | b8a49ae1913f1befdbd477f805e99cb61d7971df | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@toxicpanda.com> | Fri Jan 24 09:32:35 2020 -0500 |
committer | David Sterba <dsterba@suse.com> | Mon Mar 23 17:01:28 2020 +0100 |
tree | e743ea8b050b37fea6d10c2df78d1aa1be491847 | |
parent | 88234012beaaf677dc6d3e685d270acc1bb56a03 [diff] |
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> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>