]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: hold a ref on the root in create_subvol
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:32 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:28 +0000 (17:01 +0100)
commita2fbb58e89af20dc761ed85589ad60cb981bff39
tree0cc063b6bd4fd2effc32bde945c646c538fb8e06
parent1b9c17310087f875bf03889296fbe4378ed3df99
btrfs: hold a ref on the root in create_subvol

We're creating the new root here, but we should hold the ref until after
we've initialized the inode for it.

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