]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 6 Apr 2021 17:47:44 +0000 (19:47 +0200)
commitbe4d4807dee9a614000e6aabd3a6b7b973c98b48
tree873c5a10217af89d5ee4b25736aecc696ed0f34d
parent23e7ed56df0e5afc4758fa31c3ecb09bce41ec2b
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