|
@@ -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
|
|
* If we're over `background_thresh' then the writeback threads are woken to
|
|
* perform some writeout.
|
|
* 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)
|
|
unsigned long pages_dirtied)
|
|
{
|
|
{
|
|
struct dirty_throttle_control gdtc_stor = { GDTC_INIT(wb) };
|
|
struct dirty_throttle_control gdtc_stor = { GDTC_INIT(wb) };
|
|
@@ -1910,7 +1909,7 @@ void balance_dirty_pages_ratelimited(struct address_space *mapping)
|
|
preempt_enable();
|
|
preempt_enable();
|
|
|
|
|
|
if (unlikely(current->nr_dirtied >= ratelimit))
|
|
if (unlikely(current->nr_dirtied >= ratelimit))
|
|
- balance_dirty_pages(mapping, wb, current->nr_dirtied);
|
|
|
|
|
|
+ balance_dirty_pages(wb, current->nr_dirtied);
|
|
|
|
|
|
wb_put(wb);
|
|
wb_put(wb);
|
|
}
|
|
}
|