]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - mm/memory.c
mm: change anon_vma linking to fix multi-process server scalability issue
[net-next-2.6.git] / mm / memory.c
index 77d9f840936b29304773932e76f3d1103eee01ac..dc785b438d70fba119cae99e828dbc21b09cb7a1 100644 (file)
@@ -374,7 +374,7 @@ void free_pgtables(struct mmu_gather *tlb, struct vm_area_struct *vma,
                 * Hide vma from rmap and truncate_pagecache before freeing
                 * pgtables
                 */
-               anon_vma_unlink(vma);
+               unlink_anon_vmas(vma);
                unlink_file_vma(vma);
 
                if (is_vm_hugetlb_page(vma)) {
@@ -388,7 +388,7 @@ void free_pgtables(struct mmu_gather *tlb, struct vm_area_struct *vma,
                               && !is_vm_hugetlb_page(next)) {
                                vma = next;
                                next = vma->vm_next;
-                               anon_vma_unlink(vma);
+                               unlink_anon_vmas(vma);
                                unlink_file_vma(vma);
                        }
                        free_pgd_range(tlb, addr, vma->vm_end,