Skip to content

Commit 3645cb4

Browse files
Zhang Yanfeitorvalds
authored andcommitted
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>
1 parent d82b1d8 commit 3645cb4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎mm/vmalloc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,8 +2526,8 @@ struct vm_struct **pcpu_get_vm_areas(const unsigned long *offsets,
25262526

25272527
/* insert all vm's */
25282528
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);
25312531

25322532
kfree(vas);
25332533
return vms;

0 commit comments

Comments
 (0)