]> git.hungrycats.org Git - linux/commit
btrfs: hold a ref on the root in create_subvol
authorJosef Bacik <josef@toxicpanda.com>
Wed, 20 Nov 2019 18:39:24 +0000 (10:39 -0800)
committerJosef Bacik <josef@toxicpanda.com>
Fri, 6 Dec 2019 16:34:48 +0000 (08:34 -0800)
commite12200cf582fb96d571bc6f90bd8bb379e35925e
treecc8a3f26d3983920a44558bfd6a572f469349311
parentac52b896f6da7bdf8f43bc59c17dd832680ac80c
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>
fs/btrfs/ioctl.c