]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm, vmalloc: call setup_vmalloc_vm() instead of insert_vmalloc_vm()
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Thu, 27 Jun 2013 23:52:10 +0000 (09:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:55 +0000 (16:37 +1000)
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 <zhangyanfei@cn.fujitsu.com>
Acked-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmalloc.c

index d23e70ec45ad1abcff9f65ce46852d8c2b2d8f22..db48d513598f6906e19cb15d94853ecb9e156da9 100644 (file)
@@ -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;