From: David Sterba Date: Tue, 14 Apr 2026 15:30:30 +0000 (+0200) Subject: btrfs: replace open coded DEBUG_WARN in extent_writepage() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a6959250216ed56e2998e50d3a91f809f5f6f16;p=thirdparty%2Flinux.git btrfs: replace open coded DEBUG_WARN in extent_writepage() Reviewed-by: Johannes Thumshirn Signed-off-by: David Sterba --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 970097b47f14e..d34d066769cd3 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -1868,7 +1868,7 @@ static int extent_writepage(struct folio *folio, struct btrfs_bio_ctrl *bio_ctrl * case. */ if (unlikely(!folio_test_private(folio))) { - WARN_ON(IS_ENABLED(CONFIG_BTRFS_DEBUG)); + DEBUG_WARN(); btrfs_err_rl(fs_info, "root %lld ino %llu folio %llu is marked dirty without notifying the fs", btrfs_root_id(inode->root),