* + mm-vma_adjust-remove-superfluous-check-for-next-not-null.patch added to -mm tree
@ 2016-09-20 21:16 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-09-20 21:16 UTC (permalink / raw)
To: aarcange, hughd, janvorli, mgorman, riel, mm-commits
The patch titled
Subject: mm: vma_adjust: remove superfluous check for next not NULL
has been added to the -mm tree. Its filename is
mm-vma_adjust-remove-superfluous-check-for-next-not-null.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-vma_adjust-remove-superfluous-check-for-next-not-null.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-vma_adjust-remove-superfluous-check-for-next-not-null.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: Andrea Arcangeli <aarcange@redhat.com>
Subject: mm: vma_adjust: remove superfluous check for next not NULL
If next would be NULL we couldn't reach such code path.
Link: http://lkml.kernel.org/r/1474309513-20313-2-git-send-email-aarcange@redhat.com
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Jan Vorlicek <janvorli@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/mmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN mm/mmap.c~mm-vma_adjust-remove-superfluous-check-for-next-not-null mm/mmap.c
--- a/mm/mmap.c~mm-vma_adjust-remove-superfluous-check-for-next-not-null
+++ a/mm/mmap.c
@@ -699,7 +699,7 @@ int __vma_adjust(struct vm_area_struct *
* If next doesn't have anon_vma, import from vma after
* next, if the vma overlaps with it.
*/
- if (remove_next == 2 && next && !next->anon_vma)
+ if (remove_next == 2 && !next->anon_vma)
exporter = next->vm_next;
} else if (end > next->vm_start) {
_
Patches currently in -mm which might be from aarcange@redhat.com are
mm-vma_merge-fix-vm_page_prot-smp-race-condition-against-rmap_walk.patch
mm-vma_adjust-remove-superfluous-check-for-next-not-null.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-20 21:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-20 21:16 + mm-vma_adjust-remove-superfluous-check-for-next-not-null.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).