]> bbs.cooldavid.org Git - net-next-2.6.git/commit - mm/vmalloc.c
vmalloc: separate out insert_vmalloc_vm()
authorTejun Heo <tj@kernel.org>
Fri, 14 Aug 2009 06:00:52 +0000 (15:00 +0900)
committerTejun Heo <tj@kernel.org>
Fri, 14 Aug 2009 06:00:52 +0000 (15:00 +0900)
commitcf88c79006bd6a09ad725ba0b34c0e23db20b19e
tree7c1467a7350a33c2986fb0bb08d733b02a3fd259
parentbba174f5e03a40a4ab1c63a2272ea5530b98a067
vmalloc: separate out insert_vmalloc_vm()

Separate out insert_vmalloc_vm() from __get_vm_area_node().
insert_vmalloc_vm() initializes vm_struct from vmap_area and inserts
it into vmlist.  insert_vmalloc_vm() only initializes fields which can
be determined from @vm, @flags and @caller The rest should be
initialized by the caller.  For __get_vm_area_node(), all other fields
just need to be cleared and this is done by using kzalloc instead of
kmalloc.

This will be used to implement pcpu_get_vm_areas().

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Nick Piggin <npiggin@suse.de>
mm/vmalloc.c