Liu Bo 6f034ece34 Btrfs: cleanup BUG_ON in merge_bio
One can use btrfs-corrupt-block to hit BUG_ON() in merge_bio(),
thus this aims to stop anyone to panic the whole system by using
 their btrfs.

Since the error in merge_bio can only come from __btrfs_map_block()
when chunk tree mapping has something insane and __btrfs_map_block()
has already had printed the reason, we can just return errors in
merge_bio.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2016-07-26 13:52:25 +02:00
..
2016-07-26 13:52:25 +02:00
2016-07-26 13:52:25 +02:00
2016-07-26 13:52:25 +02:00
2015-10-06 06:55:23 -07:00
2016-07-26 13:52:25 +02:00
2016-07-26 13:52:25 +02:00
2016-07-26 13:52:25 +02:00
2016-07-26 13:52:25 +02:00