summaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorDave Young2010-10-26 23:22:06 +0200
committerLinus Torvalds2010-10-27 01:52:10 +0200
commite1ca7788dec6773b1a2bce51b7141948f2b8bccf (patch)
tree500edef0ca88f398647f99e63be0a38307314319 /mm/swapfile.c
parentmm/memory_hotplug.c: make scan_lru_pages() static (diff)
downloadkernel-qcow2-linux-e1ca7788dec6773b1a2bce51b7141948f2b8bccf.tar.gz
kernel-qcow2-linux-e1ca7788dec6773b1a2bce51b7141948f2b8bccf.tar.xz
kernel-qcow2-linux-e1ca7788dec6773b1a2bce51b7141948f2b8bccf.zip
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>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions