summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorJohannes Thumshirn2024-12-01 21:48:53 -0800
committerDavid Sterba2025-01-13 14:53:14 +0100
commitf6f0da564c668a9565c81c61c06b32e8ed981ec3 (patch)
treef538bcfd4b4afd5a3db8bca0586c4f850fca7526 /scripts/patch-kernel
parent453a73c3069a268c3c4dd00695fc2a95f7880438 (diff)
btrfs: don't BUG_ON() in btrfs_drop_extents()
btrfs_drop_extents() calls BUG_ON() in case the counter of to be deleted extents is greater than 0. But all of these code paths can handle errors, so there's no need to crash the kernel. Instead WARN() that the condition has been met and gracefully bail out. Reviewed-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions