From 31e5156730d1eb4f093345ab4afb9a7deafc0cf1 Mon Sep 17 00:00:00 2001 From: Johannes Weiner Date: Thu, 22 Oct 2015 09:03:42 +1100 Subject: [PATCH] mm: vmpressure: fix scan window after SWAP_CLUSTER_MAX increase mm-increase-swap_cluster_max-to-batch-tlb-flushes.patch changed SWAP_CLUSTER_MAX from 32 pages to 256 pages, inadvertantly switching the scan window for vmpressure detection from 2MB to 16MB. Fix. Signed-off-by: Johannes Weiner Acked-by: Mel Gorman Cc: Rik van Riel Signed-off-by: Andrew Morton --- mm/vmpressure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmpressure.c b/mm/vmpressure.c index c5afd573d7da..74f206bace68 100644 --- a/mm/vmpressure.c +++ b/mm/vmpressure.c @@ -38,7 +38,7 @@ * TODO: Make the window size depend on machine size, as we do for vmstat * thresholds. Currently we set it to 512 pages (2MB for 4KB pages). */ -static const unsigned long vmpressure_win = SWAP_CLUSTER_MAX * 16; +static const unsigned long vmpressure_win = SWAP_CLUSTER_MAX; /* * These thresholds are used when we account memory pressure through -- 2.39.5