summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2009-12-15 02:59:46 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 17:53:20 +0100
commit9ae49fab239fb49de92a657c7426271e0793c4e1 (patch)
tree156f78df3db4dbc408f6839febe7adba148c2c9f /mm
parentmm: simplify try_to_unmap_one() (diff)
downloadlinux-9ae49fab239fb49de92a657c7426271e0793c4e1.tar.xz
linux-9ae49fab239fb49de92a657c7426271e0793c4e1.zip
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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions