mm: vmscan: remove old flusher wakeup from direct reclaim path
Subsystems (3)
[email protected]
maintainerPATCH 15/124 mm: vmscan: remove old flusher wakeup from direct reclaim path
From: Johannes Weiner <[email protected]>
Subject: mm: vmscan: remove old flusher wakeup from direct reclaim path
Direct reclaim has been replaced by kswapd reclaim in pretty much all common memory pressure situations, so this code most likely doesn't accomplish the described effect anymore. The previous patch wakes up flushers for all reclaimers when we encounter dirty pages at the tail end of the LRU. Remove the crufty old direct reclaim invocation.
Signed-off-by Johannes Weiner <[email protected]>
Acked-by Minchan Kim <[email protected]>
Acked-by Michal Hocko <[email protected]>
Acked-by Hillf Danton <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Rik van Riel <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/vmscan.c | 17 ----------------- 1 file changed, 17 deletions(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-remove-old-flusher-wakeup-from-direct-reclaim-path +0 -3
@@ -2757,8 +2757,6 @@ static unsigned long do_try_to_free_page struct scan_control *sc) {int initial_priority = sc->priority; -unsigned long total_scanned =0 ; -unsigned long writeback_threshold; retry:delayacct_freepages_start ();
@@ -2771,7 +2769,6 @@ retry: sc->nr_scanned =0 ;shrink_zones (zonelist, sc); - total_scanned += sc->nr_scanned;if (sc->nr_reclaimed >= sc->nr_to_reclaim)break ;
@@ -2784,20 +2781,6 @@ retry:*/ if (sc->priority <DEF_PRIORITY -2 ) sc->may_writepage =1 ;