summaryrefslogtreecommitdiff
path: root/fs/btrfs/verity.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2021-08-17 07:55:40 +0800
committerDavid Sterba <dsterba@suse.com>2021-09-17 19:29:38 +0200
commitbbc9a6eb5eec03dcafee266b19f56295e3b2aa8f (patch)
tree90ae9f25c09872b0f937786ee06f44f7189ba4fc /fs/btrfs/verity.c
parentf79645df806565a03abb2847a1d20e6930b25e7e (diff)
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 'fs/btrfs/verity.c')
0 files changed, 0 insertions, 0 deletions