Subject: + mm-mmap-remove-the-first-mapping-check.patch added to -mm tree To: b32955@xxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Mon, 21 Apr 2014 15:36:17 -0700 The patch titled Subject: mm/mmap.c: remove the first mapping check has been added to the -mm tree. Its filename is mm-mmap-remove-the-first-mapping-check.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-mmap-remove-the-first-mapping-check.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-mmap-remove-the-first-mapping-check.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Huang Shijie <b32955@xxxxxxxxxxxxx> Subject: mm/mmap.c: remove the first mapping check Remove the first mapping check for vma_link. Move the mutex_lock into the braces when vma->vm_file is true. Signed-off-by: Huang Shijie <b32955@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mmap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff -puN mm/mmap.c~mm-mmap-remove-the-first-mapping-check mm/mmap.c --- a/mm/mmap.c~mm-mmap-remove-the-first-mapping-check +++ a/mm/mmap.c @@ -643,11 +643,10 @@ static void vma_link(struct mm_struct *m { struct address_space *mapping = NULL; - if (vma->vm_file) + if (vma->vm_file) { mapping = vma->vm_file->f_mapping; - - if (mapping) mutex_lock(&mapping->i_mmap_mutex); + } __vma_link(mm, vma, prev, rb_link, rb_parent); __vma_link_file(vma); _ Patches currently in -mm which might be from b32955@xxxxxxxxxxxxx are mm-mmap-remove-the-first-mapping-check.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html