]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: handle extent reference errors in do_relocation
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:25:25 +0000 (15:25 -0500)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Apr 2021 19:07:06 +0000 (21:07 +0200)
commitb46b61746d1dbd56469971044a1baeb0eec6593f
treef3538f9a44a02a407bccf374dbb0e5fb6a5ad20d
parent78c5999a1283271d11b4eaf146d027ab9d017949
btrfs: handle extent reference errors in do_relocation

We can already deal with errors appropriately from do_relocation, simply
handle any errors that come from changing the refs at this point
cleanly.  We have to abort the transaction if we fail here as we've
modified metadata at this point.

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