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