]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: replace open coded DEBUG_WARN in extent_writepage()
authorDavid Sterba <dsterba@suse.com>
Tue, 14 Apr 2026 15:30:30 +0000 (17:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Jun 2026 13:53:28 +0000 (15:53 +0200)
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c

index 970097b47f14ef4c97edc0eb74d13d952499c9ea..d34d066769cd3348b7a23e40f785d367a3a7e308 100644 (file)
@@ -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),