Add N_CPU node state We need the check for a node with cpu in zone reclaim. Zone reclaim will not allow remote zone reclaim if a node has a cpu. Signed-off-by: Christoph Lameter --- include/linux/nodemask.h | 1 + mm/vmscan.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6.22-rc6-mm1/include/linux/nodemask.h =================================================================== --- linux-2.6.22-rc6-mm1.orig/include/linux/nodemask.h 2007-07-09 22:35:59.000000000 -0700 +++ linux-2.6.22-rc6-mm1/include/linux/nodemask.h 2007-07-09 22:36:15.000000000 -0700 @@ -344,6 +344,7 @@ enum node_states { N_POSSIBLE, /* The node could become online at some point */ N_ONLINE, /* The node is online */ N_MEMORY, /* The node has memory */ + N_CPU, /* The node has cpus */ NR_NODE_STATES }; Index: linux-2.6.22-rc6-mm1/mm/vmscan.c =================================================================== --- linux-2.6.22-rc6-mm1.orig/mm/vmscan.c 2007-07-09 22:36:24.000000000 -0700 +++ linux-2.6.22-rc6-mm1/mm/vmscan.c 2007-07-09 22:38:05.000000000 -0700 @@ -1888,8 +1888,7 @@ int zone_reclaim(struct zone *zone, gfp_ * as wide as possible. */ node_id = zone_to_nid(zone); - mask = node_to_cpumask(node_id); - if (!cpus_empty(mask) && node_id != numa_node_id()) + if (node_state(N_CPU, node_id) && node_id != numa_node_id()) return 0; return __zone_reclaim(zone, gfp_mask, order); }