Commit 4c578dce authored by Tahsin Erdogan's avatar Tahsin Erdogan Committed by Linus Torvalds

mm/page-writeback.c: remove unused parameter from balance_dirty_pages()

"mapping" parameter to balance_dirty_pages() is not used anymore.

Fixes: dfb8ae56 ("writeback: let balance_dirty_pages() work on the matching cgroup bdi_writeback")
Link: default avatarTahsin Erdogan <>
Acked-by: default avatarMichal Hocko <>
Acked-by: default avatarJohannes Weiner <>
Cc: Jan Kara <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent e9a6effa
......@@ -1559,8 +1559,7 @@ static inline void wb_dirty_limits(struct dirty_throttle_control *dtc)
* If we're over `background_thresh' then the writeback threads are woken to
* perform some writeout.
static void balance_dirty_pages(struct address_space *mapping,
struct bdi_writeback *wb,
static void balance_dirty_pages(struct bdi_writeback *wb,
unsigned long pages_dirtied)
struct dirty_throttle_control gdtc_stor = { GDTC_INIT(wb) };
......@@ -1910,7 +1909,7 @@ void balance_dirty_pages_ratelimited(struct address_space *mapping)
if (unlikely(current->nr_dirtied >= ratelimit))
balance_dirty_pages(mapping, wb, current->nr_dirtied);
balance_dirty_pages(wb, current->nr_dirtied);
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