OSDN Git Service

btrfs: hold a ref on the root in merge_reloc_roots
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:40 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:29 +0000 (17:01 +0100)
commitab9737bd759741a56641d627e6a2025be18c91f9
tree1469084cec29da551c9810c8a0d067d8d1d1726b
parentdb2c2ca2db44e4971ec41d3245119f7bc9d25d37
btrfs: hold a ref on the root in merge_reloc_roots

We look up the corresponding root for the reloc root, we need to hold a
ref while we're messing with it.

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