]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: handle btrfs_cow_block errors in replace_path
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:25:22 +0000 (15:25 -0500)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Apr 2021 18:05:21 +0000 (20:05 +0200)
commitb1a89bb644a363e085b96a389a3044cf1244a9ad
tree7b17cac1174f360b0138d30a9abf7c9d4071d303
parente5997848fa9b795b89dc887dfcc3737fc427ddf3
btrfs: handle btrfs_cow_block errors in replace_path

If we error out COWing the root node when doing a replace_path then we
simply unlock and free the buffer and return the error.

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