aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2021-08-16 23:55:40 +0000
committerDavid Sterba <[email protected]>2021-09-17 17:29:38 +0000
commitbbc9a6eb5eec03dcafee266b19f56295e3b2aa8f (patch)
tree90ae9f25c09872b0f937786ee06f44f7189ba4fc /scripts/gcc-plugins/cyc_complexity_plugin.c
parentbtrfs: zoned: fix double counting of split ordered extent (diff)
downloadkernel-bbc9a6eb5eec03dcafee266b19f56295e3b2aa8f.tar.gz
kernel-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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions