There are several BUG()/BUG_ON() inside raid56.c, which cause
checkpatch warning if code is touching them. This is especially annoying
if using b4, with btrfs-workflow git hooks applied, which makes b4 to
wait for user input but without any output.
Address them by removing one very impossible BUG(), and using ASSERT() for
the remaining ones:
- __remove_rbio_from_cache()
- rbio_is_full()
- unlock_stripe()
Replace the BUG_ON() with ASSERT().
- finish_parity_scrub()
Remove the BUG(), as alloc_rbio() has already properly calculated
real_stripes and nr_data using the number of parity.
Furthermore, initialize @has_qstripe at the beginning of the function
using the bioc->map_type directly.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Qu Wenruo <wqu@suse.com>