btrfs-progs: add crude error handling when transaction start fails
commit448999d84ddc2eaf36938176fb5091d2c2029e2f
authorDavid Sterba <dsterba@suse.com>
Mon, 28 Aug 2017 14:48:16 +0000 (28 16:48 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 8 Sep 2017 14:15:05 +0000 (8 16:15 +0200)
tree4e90505605420f6d3467639d2899e93c893596dd
parent4ef5a112c9d2fe9d6f03ac2ea3aa5b1af0f37254
btrfs-progs: add crude error handling when transaction start fails

Currently transaction bugs out insided btrfs_start_transaction in case
of error, we want to lift the error handling to the callers. This patch
adds the BUG_ON anywhere it's been missing so far. This is not the best
way of course. Transforming BUG_ON to a proper error handling highly
depends on the caller and should be dealt with case by case.

Signed-off-by: David Sterba <dsterba@suse.com>
14 files changed:
btrfs-corrupt-block.c
btrfs-zero-log.c
btrfstune.c
chunk-recover.c
cmds-rescue.c
convert/main.c
convert/source-ext2.c
convert/source-reiserfs.c
dir-test.c
disk-io.c
mkfs/main.c
quick-test.c
random-test.c
utils.c