Commit 2bce774e authored by Wang Long's avatar Wang Long Committed by Linus Torvalds

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.comSigned-off-by: default avatarWang Long <wanglong19@meituan.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0a7f682d
...@@ -93,7 +93,7 @@ extern void wb_writeout_inc(struct bdi_writeback *wb); ...@@ -93,7 +93,7 @@ extern void wb_writeout_inc(struct bdi_writeback *wb);
/* /*
* maximal error of a stat counter. * 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 #ifdef CONFIG_SMP
return nr_cpu_ids * WB_STAT_BATCH; return nr_cpu_ids * WB_STAT_BATCH;
......
...@@ -1545,7 +1545,7 @@ static inline void wb_dirty_limits(struct dirty_throttle_control *dtc) ...@@ -1545,7 +1545,7 @@ static inline void wb_dirty_limits(struct dirty_throttle_control *dtc)
* actually dirty; with m+n sitting in the percpu * actually dirty; with m+n sitting in the percpu
* deltas. * 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); wb_reclaimable = wb_stat_sum(wb, WB_RECLAIMABLE);
dtc->wb_dirty = wb_reclaimable + wb_stat_sum(wb, WB_WRITEBACK); dtc->wb_dirty = wb_reclaimable + wb_stat_sum(wb, WB_WRITEBACK);
} else { } else {
...@@ -1803,7 +1803,7 @@ static void balance_dirty_pages(struct bdi_writeback *wb, ...@@ -1803,7 +1803,7 @@ static void balance_dirty_pages(struct bdi_writeback *wb,
* more page. However wb_dirty has accounting errors. So use * more page. However wb_dirty has accounting errors. So use
* the larger and more IO friendly wb_stat_error. * 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; break;
if (fatal_signal_pending(current)) if (fatal_signal_pending(current))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment