]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/vmscan.c
mm: vmscan: convert global reclaim to per-memcg LRU lists
[karo-tx-linux.git] / mm / vmscan.c
index b9eaa06c6e6ea2ea36e71bbad60f81501c54052e..ded185779095e2c203ded948599a6034f56feb33 100644 (file)
@@ -1911,7 +1911,8 @@ static void get_scan_count(struct zone *zone, struct scan_control *sc,
         * latencies, so it's better to scan a minimum amount there as
         * well.
         */
-       if (scanning_global_lru(sc) && current_is_kswapd())
+       if (scanning_global_lru(sc) && current_is_kswapd() &&
+           zone->all_unreclaimable)
                force_scan = true;
        if (!scanning_global_lru(sc))
                force_scan = true;