]> git.ipfire.org Git - thirdparty/linux.git/commit - fs/btrfs/ioctl.c
btrfs: hold ref on root in btrfs_ioctl_default_subvol
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:37 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:29 +0000 (17:01 +0100)
commit2a2b5d62026633d6fc515b1c0fe3a5e58cae7891
tree2cb741f40a0f39b1fda7da4b659a9bd422ae4353
parent04734e844894ccdfcb907d10eec1433e19d4918a
btrfs: hold ref on root in btrfs_ioctl_default_subvol

We look up an arbitrary fs root here, we need to hold a ref on the root
for the duration.

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