Skip to content
  • Tejun Heo's avatar
    vmalloc: separate out insert_vmalloc_vm() · cf88c790
    Tejun Heo authored
    
    
    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: default avatarTejun Heo <tj@kernel.org>
    Cc: Nick Piggin <npiggin@suse.de>
    cf88c790