]> git.baikalelectronics.ru Git - kernel.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>
Mon, 19 Apr 2021 15:25:21 +0000 (17:25 +0200)
commite2ffa8ae10d419e82f988f0a7c59d5a8cd843a9a
treec90e15d53d67b9f0969763c6bac856ee0626e783
parent0795edbdcd494300788cbb5dc2507e8bb2a1b47c
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