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

Looking up the inode from an arbitrary tree means we need to hold a ref
on that root.

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