• T
    vmalloc: separate out insert_vmalloc_vm() · cf88c790
    Tejun Heo 提交于
    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: NTejun Heo <tj@kernel.org>
    Cc: Nick Piggin <npiggin@suse.de>
    cf88c790
vmalloc.c 46.5 KB