David Rientjes 9ae49fab23 mm: slab-allocate memory section nodemask for large systems
Nodemasks should not be allocated on the stack for large systems (when it
is larger than 256 bytes) since there is a threat of overflow.

This patch causes the unregister_mem_sect_under_nodes() nodemask to be
allocated on the stack for smaller systems and be allocated by slab for
larger systems.

GFP_KERNEL is used since remove_memory_block() can block.

Cc: Gary Hade <garyhade@us.ibm.com>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Cc: Alex Chiang <achiang@hp.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-12-15 08:53:20 -08:00
..
2009-12-11 11:55:21 -08:00
2009-12-13 21:23:33 +01:00
2009-12-11 11:55:21 -08:00
2009-12-14 21:17:27 +01:00
2009-12-02 01:13:11 -08:00
2009-12-13 21:23:33 +01:00
2009-12-14 00:26:26 +01:00
2009-12-14 21:17:26 +01:00
2009-12-09 17:14:38 +11:00
2009-12-14 00:26:08 +01:00
2009-12-13 21:23:33 +01:00
2009-12-13 21:23:33 +01:00
2009-12-13 21:23:33 +01:00