]> git.karo-electronics.de Git - linux-beck.git/commit
mm: add vzalloc() and vzalloc_node() helpers
authorDave Young <hidave.darkstar@gmail.com>
Tue, 26 Oct 2010 21:22:06 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:10 +0000 (16:52 -0700)
commite1ca7788dec6773b1a2bce51b7141948f2b8bccf
tree500edef0ca88f398647f99e63be0a38307314319
parent7bbc0905ea4f7a471a7f79d0bea5d538f5114fc9
mm: add vzalloc() and vzalloc_node() helpers

Add vzalloc() and vzalloc_node() to encapsulate the
vmalloc-then-memset-zero operation.

Use __GFP_ZERO to zero fill the allocated memory.

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Acked-by: Greg Ungerer <gerg@snapgear.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/vmalloc.h
mm/nommu.c
mm/vmalloc.c