]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d5c913b04a070a708b650653ae9992cfdbcc6da
tree1469084cec29da551c9810c8a0d067d8d1d1726b
parent13a5de729474b0301f15a550128d9a2eadb1ed74
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