From: Andrea Arcangeli Date: Tue, 10 Aug 2010 00:19:07 +0000 (-0700) Subject: mmap: remove unnecessary lock from __vma_link X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e549e989f94de0596b8149a90e0088e7d4d7c97;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git mmap: remove unnecessary lock from __vma_link There's no anon-vma related mangling happening inside __vma_link anymore so no need of anon_vma locking there. Signed-off-by: Andrea Arcangeli Signed-off-by: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/mmap.c b/mm/mmap.c index fb89360a212..31003338b97 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -452,12 +452,10 @@ static void vma_link(struct mm_struct *mm, struct vm_area_struct *vma, spin_lock(&mapping->i_mmap_lock); vma->vm_truncate_count = mapping->truncate_count; } - vma_lock_anon_vma(vma); __vma_link(mm, vma, prev, rb_link, rb_parent); __vma_link_file(vma); - vma_unlock_anon_vma(vma); if (mapping) spin_unlock(&mapping->i_mmap_lock);