]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9754692bbddc379897749e2098773a81ad93fb75
tree98490b1ead38f5e3e29cdd1639ab421dc064f06e
parenteb5afaf555294c6150f2027b571f504dfda0ffba
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