From: Tejun Heo Date: Fri, 14 Aug 2009 06:00:52 +0000 (+0900) Subject: vmalloc: separate out insert_vmalloc_vm() X-Git-Tag: v2.6.32-rc1~676^2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf88c79006bd6a09ad725ba0b34c0e23db20b19e;p=pandora-kernel.git 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 Cc: Nick Piggin --- Reading git-diff-tree failed