OSDN Git Service

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)
commit442b1ac5244ea2dc09d8aa688b41e0a0c4634b0a
tree2feea2107322b439498bcc7a757a197c906f75f9
parentab9737bd759741a56641d627e6a2025be18c91f9
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