btrfs: make relocation use btrfs_read_tree_root()
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:22 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:25 +0000 (17:01 +0100)
commit3dbf1738a1d3429248a01bcb46ce5cec0eae24f7
treecd742f35332689686604df7a6726c10987b598c0
parent62a2c73ebda3b0163832610c0e91f350a22908bd
btrfs: make relocation use btrfs_read_tree_root()

Relocation has it's special roots, we don't want to save these in the
root cache either, so swap it to use btrfs_read_tree_root().  However
the reloc root does need REF_COWS set, so make sure we set it everywhere
we use this helper, as it no longer does the REF_COWS setting.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
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