]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: use assertion instead of BUG_ON when adding/removing to delalloc list
authorFilipe Manana <fdmanana@suse.com>
Fri, 9 Feb 2024 12:25:43 +0000 (12:25 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:50 +0000 (16:24 +0100)
commitd23626d8bc4597836eb33d88dacbc3858df7e4d3
treef00fa6b6efeeb3eeff8a54dd23d54a4e4efd29c4
parentb5d563925903e40a4425dff64e53127554e5fcc6
btrfs: use assertion instead of BUG_ON when adding/removing to delalloc list

When adding or removing and inode to/from the root's delalloc list,
instead of using a BUG_ON() to validate list emptiness, use ASSERT()
since this is to check logic errors rather than real errors.

Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.com>
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/inode.c