m68k/mm: Set all online nodes in N_NORMAL_MEMORY
authorMichael Schmitz <schmitzmic@googlemail.com>
Tue, 26 Apr 2011 02:51:53 +0000 (14:51 +1200)
committerSteve Conklin <sconklin@canonical.com>
Thu, 2 Jun 2011 19:23:06 +0000 (14:23 -0500)
commite350f7cf12149a8c79095268e1b6da14901fa754
tree28900b1937f1e2166c3b3369279fa036bce297a6
parent3a7ecd0f369bc80f3647941224c3c24b7dcb9621
m68k/mm: Set all online nodes in N_NORMAL_MEMORY

BugLink: http://bugs.launchpad.net/bugs/775809

commit 4aac0b4815ba592052758f4b468f253d383dc9d6 upstream.

For m68k, N_NORMAL_MEMORY represents all nodes that have present memory
since it does not support HIGHMEM.  This patch sets the bit at the time
node_present_pages has been set by free_area_init_node.
At the time the node is brought online, the node state would have to be
done unconditionally since information about present memory has not yet
been recorded.

If N_NORMAL_MEMORY is not accurate, slub may encounter errors since it
uses this nodemask to setup per-cache kmem_cache_node data structures.

This pach is an alternative to the one proposed by David Rientjes
<rientjes@google.com> attempting to set node state immediately when
bringing the node online.

Signed-off-by: Michael Schmitz <schmitz@debian.org>
Tested-by: Thorsten Glaser <tg@debian.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/m68k/mm/motorola.c