All of lore.kernel.org
 help / color / mirror / Atom feed
* + writeback-remove-the-unused-function-parameter.patch added to -mm tree
@ 2017-11-07  0:11 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-11-07  0:11 UTC (permalink / raw)
  To: wanglong19, axboe, jack, tj, mm-commits


The patch titled
     Subject: writeback: remove unused function parameter
has been added to the -mm tree.  Its filename is
     writeback-remove-the-unused-function-parameter.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/writeback-remove-the-unused-function-parameter.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/writeback-remove-the-unused-function-parameter.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Wang Long <wanglong19@meituan.com>
Subject: writeback: remove unused function parameter

The parameter `struct bdi_writeback *wb` is not been used in the function
body.  Remove it.

Link: http://lkml.kernel.org/r/1509685485-15278-1-git-send-email-wanglong19@meituan.com
Signed-off-by: Wang Long <wanglong19@meituan.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/backing-dev.h |    2 +-
 mm/page-writeback.c         |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff -puN include/linux/backing-dev.h~writeback-remove-the-unused-function-parameter include/linux/backing-dev.h
--- a/include/linux/backing-dev.h~writeback-remove-the-unused-function-parameter
+++ a/include/linux/backing-dev.h
@@ -95,7 +95,7 @@ extern void wb_writeout_inc(struct bdi_w
 /*
  * maximal error of a stat counter.
  */
-static inline unsigned long wb_stat_error(struct bdi_writeback *wb)
+static inline unsigned long wb_stat_error(void)
 {
 #ifdef CONFIG_SMP
 	return nr_cpu_ids * WB_STAT_BATCH;
diff -puN mm/page-writeback.c~writeback-remove-the-unused-function-parameter mm/page-writeback.c
--- a/mm/page-writeback.c~writeback-remove-the-unused-function-parameter
+++ a/mm/page-writeback.c
@@ -1545,7 +1545,7 @@ static inline void wb_dirty_limits(struc
 	 * actually dirty; with m+n sitting in the percpu
 	 * deltas.
 	 */
-	if (dtc->wb_thresh < 2 * wb_stat_error(wb)) {
+	if (dtc->wb_thresh < 2 * wb_stat_error()) {
 		wb_reclaimable = wb_stat_sum(wb, WB_RECLAIMABLE);
 		dtc->wb_dirty = wb_reclaimable + wb_stat_sum(wb, WB_WRITEBACK);
 	} else {
@@ -1803,7 +1803,7 @@ pause:
 		 * more page. However wb_dirty has accounting errors.  So use
 		 * the larger and more IO friendly wb_stat_error.
 		 */
-		if (sdtc->wb_dirty <= wb_stat_error(wb))
+		if (sdtc->wb_dirty <= wb_stat_error())
 			break;
 
 		if (fatal_signal_pending(current))
_

Patches currently in -mm which might be from wanglong19@meituan.com are

writeback-remove-the-unused-function-parameter.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-07  0:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07  0:11 + writeback-remove-the-unused-function-parameter.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.