Skip to contentSkip to conversation

+ mm-mmap-remove-the-first-mapping-check.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Apr 21, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-mmap-remove-the-first-mapping-check.patch added to -mm tree
To: [email protected]
From: [email protected]
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 <[email protected]>
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.

---

 mm/mmap.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
mm/mmap.c renamed from mm/mmap.c~mm-mmap-remove-the-first-mapping-check +1 -1
diff -puN mm/mmap.c~mm-mmap-remove-the-first-mapping-check 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;