diff options
author | 2021-08-17 07:55:40 +0800 | |
---|---|---|
committer | 2021-09-17 19:29:38 +0200 | |
commit | bbc9a6eb5eec03dcafee266b19f56295e3b2aa8f (patch) | |
tree | 90ae9f25c09872b0f937786ee06f44f7189ba4fc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: zoned: fix double counting of split ordered extent (diff) | |
download | linux-dev-bbc9a6eb5eec03dcafee266b19f56295e3b2aa8f.tar.xz linux-dev-bbc9a6eb5eec03dcafee266b19f56295e3b2aa8f.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions