From: Zhang Yanfei Date: Fri, 7 Jun 2013 00:08:22 +0000 (+1000) Subject: mm, vmalloc: call setup_vmalloc_vm() instead of insert_vmalloc_vm() X-Git-Tag: next-20130607~2^2~307 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0b3e5463bba47c3459f56f301d956a5578891687;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;