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

We lookup all the clone roots and the parent root for send, so we need
to hold refs on all of these roots while we're processing them.

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