Skip to contentSkip to conversation

mm: vmscan: remove old flusher wakeup from direct reclaim path

PATCH New [email protected] 1 participant 1 message Feb 24, 2017

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 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.

---

 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
diff -puN mm/vmscan.c~mm-vmscan-remove-old-flusher-wakeup-from-direct-reclaim-path mm/vmscan.c
@@ -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;