diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-10-16 04:25:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:42:58 -0400 |
commit | 9422ffba4adc82b4b67a3ca6ef51516aa61f8248 (patch) | |
tree | e30f87beca455b3e3b1f4c8c8921e9ef049c000f /mm | |
parent | ee31af5d649d8aa6ac7948a6d97ae48367ff2d7e (diff) |
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 <clameter@sgi.com>
Acked-by: Nishanth Aravamudan <nacc@us.ibm.com>
Tested-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Acked-by: Bob Picco <bob.picco@hp.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Mel Gorman <mel@skynet.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1733 | int nid; | 1733 | int nid; |
1734 | 1734 | ||
1735 | swap_setup(); | 1735 | swap_setup(); |
1736 | for_each_online_node(nid) | 1736 | for_each_node_state(nid, N_HIGH_MEMORY) |
1737 | kswapd_run(nid); | 1737 | kswapd_run(nid); |
1738 | hotcpu_notifier(cpu_callback, 0); | 1738 | hotcpu_notifier(cpu_callback, 0); |
1739 | return 0; | 1739 | return 0; |