From: Zhang Yanfei Date: Thu, 27 Jun 2013 23:52:10 +0000 (+1000) Subject: mm, vmalloc: call setup_vmalloc_vm() instead of insert_vmalloc_vm() X-Git-Tag: next-20130628~3^2~432 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8bf16177a698ee7579d5a9b28c5e29edcebbd1c3;p=karo-tx-linux.git 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: Zhang Yanfei Acked-by: Joonsoo Kim Signed-off-by: Andrew Morton --- diff --git a/mm/vmalloc.c b/mm/vmalloc.c index d23e70ec45ad..db48d513598f 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -2526,8 +2526,8 @@ found: /* insert all vm's */ for (area = 0; area < nr_vms; area++) - insert_vmalloc_vm(vms[area], vas[area], VM_ALLOC, - pcpu_get_vm_areas); + setup_vmalloc_vm(vms[area], vas[area], VM_ALLOC, + pcpu_get_vm_areas); kfree(vas); return vms;