]> git.hungrycats.org Git - linux/commit
btrfs: hold a ref on the root in btrfs_recover_relocation
authorJosef Bacik <josef@toxicpanda.com>
Wed, 20 Nov 2019 19:57:47 +0000 (11:57 -0800)
committerJosef Bacik <josef@toxicpanda.com>
Fri, 6 Dec 2019 16:34:48 +0000 (08:34 -0800)
commit265d9d69a93cd9591c62ec96d3b531cd4deae46f
treef22d4d28904f964fae39610a699b6abb749975ca
parent79f85746018a4b376cd81ee70bc77efd7ac1d107
btrfs: hold a ref on the root in btrfs_recover_relocation

We look up the fs root in various places in here when recovering from a
crashed relcoation.  Make sure we hold a ref on the root whenever we
look them up.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
fs/btrfs/relocation.c