]> 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)
commite11dc32809488b8369ec03396714d2dbafe8134b
tree98490b1ead38f5e3e29cdd1639ab421dc064f06e
parent91e67f9879306112ade274684f71167c5ab3ff63
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