diff options
author | Wang Long <wanglong19@meituan.com> | 2017-11-15 20:39:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 21:21:07 -0500 |
commit | 2bce774e8245e95db81872ec39522cde8b486fc8 (patch) | |
tree | 3eb19f827efed71affb9f51ffc537b72f4e4a4cc /mm/page-writeback.c | |
parent | 0a7f682d04652fd91de0cbc1ea3d7aa1e45611c7 (diff) |
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r-- | mm/page-writeback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 05313f402ba8..8a1551154285 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -1545,7 +1545,7 @@ static inline void wb_dirty_limits(struct dirty_throttle_control *dtc) | |||
1545 | * actually dirty; with m+n sitting in the percpu | 1545 | * actually dirty; with m+n sitting in the percpu |
1546 | * deltas. | 1546 | * deltas. |
1547 | */ | 1547 | */ |
1548 | if (dtc->wb_thresh < 2 * wb_stat_error(wb)) { | 1548 | if (dtc->wb_thresh < 2 * wb_stat_error()) { |
1549 | wb_reclaimable = wb_stat_sum(wb, WB_RECLAIMABLE); | 1549 | wb_reclaimable = wb_stat_sum(wb, WB_RECLAIMABLE); |
1550 | dtc->wb_dirty = wb_reclaimable + wb_stat_sum(wb, WB_WRITEBACK); | 1550 | dtc->wb_dirty = wb_reclaimable + wb_stat_sum(wb, WB_WRITEBACK); |
1551 | } else { | 1551 | } else { |
@@ -1803,7 +1803,7 @@ pause: | |||
1803 | * more page. However wb_dirty has accounting errors. So use | 1803 | * more page. However wb_dirty has accounting errors. So use |
1804 | * the larger and more IO friendly wb_stat_error. | 1804 | * the larger and more IO friendly wb_stat_error. |
1805 | */ | 1805 | */ |
1806 | if (sdtc->wb_dirty <= wb_stat_error(wb)) | 1806 | if (sdtc->wb_dirty <= wb_stat_error()) |
1807 | break; | 1807 | break; |
1808 | 1808 | ||
1809 | if (fatal_signal_pending(current)) | 1809 | if (fatal_signal_pending(current)) |