]> git.hungrycats.org Git - linux/commit
btrfs: hold a ref on the root in resolve_indirect_ref
authorJosef Bacik <josef@toxicpanda.com>
Wed, 20 Nov 2019 15:51:49 +0000 (07:51 -0800)
committerJosef Bacik <josef@toxicpanda.com>
Fri, 6 Dec 2019 16:34:48 +0000 (08:34 -0800)
commite146f8c3abcae02bd33f15b0a4754f90f5c6f543
treecdcca4b3707169d490fa54ffd9fd26bb59734d3e
parent3d17bf0b583a70f6bf9ffa58696a992681b702c3
btrfs: hold a ref on the root in resolve_indirect_ref

We're looking up a random root, we need to hold a ref on it while we're
using it.

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