]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: use extent_io_tree_panic() instead of BUG_ON()
authorFilipe Manana <fdmanana@suse.com>
Wed, 11 Mar 2026 12:35:33 +0000 (12:35 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:56:03 +0000 (18:56 +0200)
commit6fc58dec5b83685dee058bf0e86effa8fff0c96a
treed60a26d4d15571c43863b68872e8b11a1cd5a7f7
parentf5405ffce78d6e79babc8246df6566b7e001dadb
btrfs: use extent_io_tree_panic() instead of BUG_ON()

There's no need to call BUG_ON(), instead call extent_io_tree_panic(),
which also calls BUG(), but it prints an additional error message with
some useful information before hitting BUG().

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-io-tree.c