From: Christoph Lameter Date: Tue, 16 Oct 2007 08:25:31 +0000 (-0700) Subject: Memoryless nodes: No need for kswapd X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9422ffba4adc82b4b67a3ca6ef51516aa61f8248;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Memoryless nodes: No need for kswapd A node without memory does not need a kswapd. So use the memory map instead of the online map when starting kswapd. Signed-off-by: Christoph Lameter Acked-by: Nishanth Aravamudan Tested-by: Lee Schermerhorn Acked-by: Bob Picco Cc: KAMEZAWA Hiroyuki Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index bc58802663be..876568847b71 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1733,7 +1733,7 @@ static int __init kswapd_init(void) int nid; swap_setup(); - for_each_online_node(nid) + for_each_node_state(nid, N_HIGH_MEMORY) kswapd_run(nid); hotcpu_notifier(cpu_callback, 0); return 0;