btrfs: hold a ref on the root in fixup_tree_root_location
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:31 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:28 +0000 (17:01 +0100)
commit8727002f79095d006a642f4f1f42372e84a77082
tree48ffd373b84f4ea42fd1e23418c5d924f08b627c
parent02162a0265eb56742442ef42c58db8739ddd9b94
btrfs: hold a ref on the root in fixup_tree_root_location

Looking up the inode from an arbitrary tree means we need to hold a ref
on that root.

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/inode.c