From: Lai Jiangshan Date: Thu, 29 Nov 2012 03:18:04 +0000 (+1100) Subject: mm,migrate: use N_MEMORY instead N_HIGH_MEMORY X-Git-Tag: next-20121205~1^2~248 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b28b715d20bc3f818272f0c9d4228472702174a6;p=karo-tx-linux.git mm,migrate: use N_MEMORY instead N_HIGH_MEMORY N_HIGH_MEMORY stands for the nodes that has normal or high memory. N_MEMORY stands for the nodes that has any memory. The code here need to handle with the nodes which have memory, we should use N_MEMORY instead. Signed-off-by: Lai Jiangshan Acked-by: Christoph Lameter Signed-off-by: Wen Congyang Cc: Hillf Danton Cc: Lin Feng Cc: David Rientjes Signed-off-by: Andrew Morton --- diff --git a/mm/migrate.c b/mm/migrate.c index b2f9a021ec1a..108d74d82b9c 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -1239,7 +1239,7 @@ static int do_pages_move(struct mm_struct *mm, nodemask_t task_nodes, if (node < 0 || node >= MAX_NUMNODES) goto out_pm; - if (!node_state(node, N_HIGH_MEMORY)) + if (!node_state(node, N_MEMORY)) goto out_pm; err = -EACCES;