]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: convert WARN_ON(IS_ENABLED(CONFIG_BTRFS_DEBUG)) to DEBUG_WARN
authorDavid Sterba <dsterba@suse.com>
Thu, 17 Apr 2025 09:17:02 +0000 (11:17 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:47 +0000 (14:30 +0200)
commited50ab0fec1a881a379bea7187994ff6cbe2fc58
treef9c589fb6a275851d593f2c2016c6a9cd40f9606
parent3db15c6ca6feb2c5000a1cbb39c33866e0349abd
btrfs: convert WARN_ON(IS_ENABLED(CONFIG_BTRFS_DEBUG)) to DEBUG_WARN

Use the conditional warning instead of typing the whole condition.
Optional message is printed where it seems clear what could be the
problem.

Conversion is left out in btree_csum_one_bio() because of the additional
condition.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/btrfs/qgroup.c
fs/btrfs/tree-checker.c