init: use N_MEMORY instead N_HIGH_MEMORY
authorLai Jiangshan <[email protected]>
Wed, 12 Dec 2012 21:51:40 +0000 (13:51 -0800)
committerLinus Torvalds <[email protected]>
Thu, 13 Dec 2012 01:38:33 +0000 (17:38 -0800)
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 <[email protected]>
Signed-off-by: Wen Congyang <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Hillf Danton <[email protected]>
Cc: Lin Feng <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
init/main.c

index e33e09df3cbc61ad11736776ef4138010df1de8e..63ae904a99a8eb3718f6a57ee515c12f0b60b8dc 100644 (file)
@@ -857,7 +857,7 @@ static void __init kernel_init_freeable(void)
        /*
         * init can allocate pages on any node
         */
-       set_mems_allowed(node_states[N_HIGH_MEMORY]);
+       set_mems_allowed(node_states[N_MEMORY]);
        /*
         * init can run on any cpu.
         */