OSDN Git Service

btrfs: hold a ref on the root in create_reloc_inode
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:43 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:30 +0000 (17:01 +0100)
commit76deacf02387f0cd5b6125fb54caaabe595ffc17
tree26c8f5228772867b18f579d62c907a0530ccf77b
parent3d7babdcf2cc87367e694f9b67460dde22c48319
btrfs: hold a ref on the root in create_reloc_inode

We're creating a reloc inode in the data reloc tree, we need to hold a
ref on the root while we're doing 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