summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>2024-12-02 08:48:53 +0300
committerDavid Sterba <dsterba@suse.com>2025-01-13 16:53:14 +0300
commitf6f0da564c668a9565c81c61c06b32e8ed981ec3 (patch)
treef538bcfd4b4afd5a3db8bca0586c4f850fca7526 /scripts/lib/kdoc/kdoc_files.py
parent453a73c3069a268c3c4dd00695fc2a95f7880438 (diff)
downloadlinux-f6f0da564c668a9565c81c61c06b32e8ed981ec3.tar.xz
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/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions