From: Christoph Hellwig <hch@lst.de>
To: willy@infradead.org, jack@suse.cz
Cc: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org,
linux-mm@kvack.org
Subject: [PATCH] mm: remove wb_writeout_inc
Date: Fri, 10 Jul 2026 07:10:52 +0200 [thread overview]
Message-ID: <20260710051052.1839523-1-hch@lst.de> (raw)
Remove this entirely unused but exported function.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
include/linux/backing-dev.h | 2 --
mm/page-writeback.c | 10 ----------
2 files changed, 12 deletions(-)
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h
index 5b7d12b40d5e..c2284466e7aa 100644
--- a/include/linux/backing-dev.h
+++ b/include/linux/backing-dev.h
@@ -76,8 +76,6 @@ static inline s64 wb_stat_sum(struct bdi_writeback *wb, enum wb_stat_item item)
return percpu_counter_sum_positive(&wb->stat[item]);
}
-extern void wb_writeout_inc(struct bdi_writeback *wb);
-
/*
* maximal error of a stat counter.
*/
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index e98748112d1e..47495be68598 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -584,16 +584,6 @@ static inline void __wb_writeout_add(struct bdi_writeback *wb, long nr)
wb->bdi->max_prop_frac, nr);
}
-void wb_writeout_inc(struct bdi_writeback *wb)
-{
- unsigned long flags;
-
- local_irq_save(flags);
- __wb_writeout_add(wb, 1);
- local_irq_restore(flags);
-}
-EXPORT_SYMBOL_GPL(wb_writeout_inc);
-
/*
* On idle system, we can be called long after we scheduled because we use
* deferred timers so count with missed periods.
--
2.53.0
next reply other threads:[~2026-07-10 5:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-10 5:10 Christoph Hellwig [this message]
2026-07-10 8:24 ` [PATCH] mm: remove wb_writeout_inc Anshuman Khandual
2026-07-10 16:29 ` David Hildenbrand (Arm)
2026-07-10 17:58 ` Jan Kara
2026-07-11 0:11 ` SJ Park
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260710051052.1839523-1-hch@lst.de \
--to=hch@lst.de \
--cc=akpm@linux-foundation.org \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox