Skip to contentSkip to conversation

mm-migrate-use-vma_lookup-in-do_pages_stat_array.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 6, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/migrate: use vma_lookup() in do_pages_stat_array()
has been removed from the -mm tree. Its filename was
mm-migrate-use-vma_lookup-in-do_pages_stat_array.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Liam Howlett <[email protected]>
Subject: mm/migrate: use vma_lookup() in do_pages_stat_array()

Use vma_lookup() to find the VMA at a specific address. As vma_lookup() will return NULL if the address is not within any VMA, the start address no longer needs to be validated.

---

 mm/migrate.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/migrate.c renamed from mm/migrate.c~mm-migrate-use-vma_lookup-in-do_pages_stat_array +2 -2
@@ -1834,8 +1834,8 @@ static void do_pages_stat_array(struct m
 		struct page *page;
 		int err = -EFAULT;
 
-		vma = find_vma(mm, addr);
-		if (!vma || addr < vma->vm_start)
+		vma = vma_lookup(mm, addr);
+		if (!vma)
 			goto set_status;
 
 		/* FOLL_DUMP to ignore special (like zero) pages */

_

Patches currently in -mm which might be from [email protected] are