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

We are recording this root in the transaction, so we need to hold a ref
on it until we do 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