* [merged mm-stable] mm-gup-use-maple-tree-navigation-instead-of-linked-list.patch removed from -mm tree
@ 2022-09-27 2:49 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-09-27 2:49 UTC (permalink / raw)
To: mm-commits, yuzhao, willy, will, vbabka, svens, sj, dhowells,
david, dave, catalin.marinas, Liam.Howlett, akpm
The quilt patch titled
Subject: mm/gup: use maple tree navigation instead of linked list
has been removed from the -mm tree. Its filename was
mm-gup-use-maple-tree-navigation-instead-of-linked-list.patch
This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Liam R. Howlett" <Liam.Howlett@Oracle.com>
Subject: mm/gup: use maple tree navigation instead of linked list
Date: Tue, 6 Sep 2022 19:49:00 +0000
Use find_vma_intersection() to locate the VMAs in __mm_populate() instead
of using find_vma() and the linked list.
Link: https://lkml.kernel.org/r/20220906194824.2110408-52-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Tested-by: Yu Zhao <yuzhao@google.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: SeongJae Park <sj@kernel.org>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/gup.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
--- a/mm/gup.c~mm-gup-use-maple-tree-navigation-instead-of-linked-list
+++ a/mm/gup.c
@@ -1686,10 +1686,11 @@ int __mm_populate(unsigned long start, u
if (!locked) {
locked = 1;
mmap_read_lock(mm);
- vma = find_vma(mm, nstart);
+ vma = find_vma_intersection(mm, nstart, end);
} else if (nstart >= vma->vm_end)
- vma = vma->vm_next;
- if (!vma || vma->vm_start >= end)
+ vma = find_vma_intersection(mm, vma->vm_end, end);
+
+ if (!vma)
break;
/*
* Set [nstart; nend) to intersection of desired address
_
Patches currently in -mm which might be from Liam.Howlett@Oracle.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-27 2:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-27 2:49 [merged mm-stable] mm-gup-use-maple-tree-navigation-instead-of-linked-list.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.