Qu Wenruo bbc9a6eb5e btrfs: replace BUG_ON() in btrfs_csum_one_bio() with proper error handling
There is a BUG_ON() in btrfs_csum_one_bio() to catch code logic error.
It has indeed caught several bugs during subpage development.
But the BUG_ON() itself will bring down the whole system which is
an overkill.

Replace it with a WARN() and exit gracefully, so that it won't crash the
whole system while we can still catch the code logic error.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2021-09-17 19:29:38 +02:00
..
2021-08-23 13:19:15 +02:00
2021-08-23 13:19:09 +02:00
2021-06-22 14:11:57 +02:00
2021-06-22 14:11:57 +02:00
2021-06-22 14:11:57 +02:00
2021-02-09 02:46:07 +01:00
2019-11-18 23:43:44 +01:00
2021-08-23 13:19:09 +02:00
2021-06-22 14:11:57 +02:00
2021-08-23 13:19:09 +02:00
2021-06-22 14:11:57 +02:00
2020-10-07 12:13:17 +02:00
2021-08-23 13:19:15 +02:00
2021-08-23 13:19:09 +02:00
2021-03-05 12:21:14 -08:00