btrfs: handle btrfs_record_root_in_trans failure in relocate_tree_block
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:25:07 +0000 (15:25 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:20 +0000 (17:25 +0200)
commitd18c7bd95c3d1adf5de385acc8c0bdb64b1a8d68
tree76eb234223a3d53600dac53c71ad9c32ce0834aa
parent221581e485751811db3b43148177be2a0bdb2f3c
btrfs: handle btrfs_record_root_in_trans failure in relocate_tree_block

btrfs_record_root_in_trans will return errors in the future, so handle
the error properly in relocate_tree_block.

Reviewed-by: Qu Wenruo <wqu@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