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

We look up the reloc roots corresponding root, 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/relocation.c