Skip to contentSkip to conversation

mm-gup-use-maple-tree-navigation-instead-of-linked-list.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Sep 27, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

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" <[email protected]>
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.

Cc Catalin Marinas <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc David Howells <[email protected]>
Cc "Matthew Wilcox (Oracle)" <[email protected]>
Cc SeongJae Park <[email protected]>
Cc Sven Schnelle <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Will Deacon <[email protected]>

---

 mm/gup.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
mm/gup.c renamed from mm/gup.c~mm-gup-use-maple-tree-navigation-instead-of-linked-list +4 -3
@@ -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 [email protected] are