]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: convert ASSERT(0) with handled errors to DEBUG_WARN()
authorDavid Sterba <dsterba@suse.com>
Thu, 17 Apr 2025 09:17:03 +0000 (11:17 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:47 +0000 (14:30 +0200)
commit9e0a739a9e83eb28ceb0b1e97861c88f177a7f18
tree4dcfde1267e8e9f154fbadafa2fd0850c4f0c049
parented50ab0fec1a881a379bea7187994ff6cbe2fc58
btrfs: convert ASSERT(0) with handled errors to DEBUG_WARN()

The use of ASSERT(0) is maybe useful for some cases but more like a
notice for developers. Assertions can be compiled in independently so
convert it to a debugging helper.

The difference is that it's just a warning and will not end up in BUG().
The converted cases are in connection with proper error handling.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c
fs/btrfs/dev-replace.c
fs/btrfs/extent_io.c
fs/btrfs/free-space-tree.c
fs/btrfs/relocation.c
fs/btrfs/send.c
fs/btrfs/volumes.c
fs/btrfs/zoned.c