Commit 3645cb4a4eb2002dad17b314559badf8a20e55a7
Committed by
Linus Torvalds
1 parent
d82b1d8576
Exists in
master
and in
20 other branches
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 <zhangyanfei@cn.fujitsu.com> Acked-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
mm/vmalloc.c
... | ... | @@ -2526,8 +2526,8 @@ |
2526 | 2526 | |
2527 | 2527 | /* insert all vm's */ |
2528 | 2528 | for (area = 0; area < nr_vms; area++) |
2529 | - insert_vmalloc_vm(vms[area], vas[area], VM_ALLOC, | |
2530 | - pcpu_get_vm_areas); | |
2529 | + setup_vmalloc_vm(vms[area], vas[area], VM_ALLOC, | |
2530 | + pcpu_get_vm_areas); | |
2531 | 2531 | |
2532 | 2532 | kfree(vas); |
2533 | 2533 | return vms; |