]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: handle btrfs_record_root_in_trans failure in btrfs_rename_exchange
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:25:02 +0000 (15:25 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:19 +0000 (17:25 +0200)
commitb4b7ba549ee567b96c9414fecfb2fdf85911b0f6
tree8e366292bc1c856833dddf3f063693a20135e52d
parentaaaccbf87361742179a992138d9c2c7cc7a868ff
btrfs: handle btrfs_record_root_in_trans failure in btrfs_rename_exchange

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

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/inode.c