]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: do proper error handling in create_reloc_root
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:25:14 +0000 (15:25 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:20 +0000 (17:25 +0200)
commita39fe36d5c4c98fe4d75ea9c7b302b2f0aa7667e
tree5ec9dd686bc5aa3d842a44180d887826b538e160
parent5b920eb52092e7d55da836adcee3f0ba97a43d40
btrfs: do proper error handling in create_reloc_root

We do memory allocations here, read blocks from disk, all sorts of
operations that could easily fail at any given point.  Instead of
panicing the box, simply return the error back up the chain, all callers
at this point have proper error handling.

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