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

We're looking up the data references for the bytenr in a root, we need
to hold a ref on that root while we're doing that.

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