Commit 3645cb4a authored by Zhang Yanfei's avatar Zhang Yanfei Committed by Linus Torvalds

mm, vmalloc: call setup_vmalloc_vm() instead of insert_vmalloc_vm()

Here we pass flags with only VM_ALLOC bit set, it is unnecessary to call
clear_vm_unlist to clear VM_UNLIST bit.  So use setup_vmalloc_vm instead
of insert_vmalloc_vm.
Signed-off-by: default avatarZhang Yanfei <>
Acked-by: default avatarJoonsoo Kim <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent d82b1d85
...@@ -2526,8 +2526,8 @@ found: ...@@ -2526,8 +2526,8 @@ found:
/* insert all vm's */ /* insert all vm's */
for (area = 0; area < nr_vms; area++) for (area = 0; area < nr_vms; area++)
insert_vmalloc_vm(vms[area], vas[area], VM_ALLOC, setup_vmalloc_vm(vms[area], vas[area], VM_ALLOC,
pcpu_get_vm_areas); pcpu_get_vm_areas);
kfree(vas); kfree(vas);
return vms; return vms;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment