Skip to contentSkip to conversation

mm-pagewalk-drop-nth_page-usage-within-folio-in-folio_walk_start.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Sep 21, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/pagewalk: drop nth_page() usage within folio in folio_walk_start()
has been removed from the -mm tree. Its filename was
mm-pagewalk-drop-nth_page-usage-within-folio-in-folio_walk_start.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: David Hildenbrand <[email protected]>
Subject: mm/pagewalk: drop nth_page() usage within folio in folio_walk_start()
Date: Mon, 1 Sep 2025 17:03:38 +0200

It's no longer required to use nth_page() within a folio, so let's just drop the nth_page() in folio_walk_start().

---

 mm/pagewalk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/pagewalk.c renamed from mm/pagewalk.c~mm-pagewalk-drop-nth_page-usage-within-folio-in-folio_walk_start +1 -1
@@ -1004,7 +1004,7 @@ not_found:
 found:
 	if (expose_page)
 		/* Note: Offset from the mapped page, not the folio start. */
-		fw->page = nth_page(page, (addr & (entry_size - 1)) >> PAGE_SHIFT);
+		fw->page = page + ((addr & (entry_size - 1)) >> PAGE_SHIFT);
 	else
 		fw->page = NULL;
 	fw->ptl = ptl;

_

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