Skip to contentSkip to conversation

mm-remove-nth_page.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: remove nth_page()
has been removed from the -mm tree. Its filename was
mm-remove-nth_page.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: remove nth_page()
Date: Mon, 1 Sep 2025 17:03:58 +0200

Now that all users are gone, let's remove it.

---

 include/linux/mm.h                   |    2 --
 tools/testing/scatterlist/linux/mm.h |    1 -
 2 files changed, 3 deletions(-)
include/linux/mm.h renamed from include/linux/mm.h~mm-remove-nth_page +0 -2
@@ -210,9 +210,7 @@ extern unsigned long sysctl_admin_reserv
 
 #if defined(CONFIG_SPARSEMEM) && !defined(CONFIG_SPARSEMEM_VMEMMAP)
 bool page_range_contiguous(const struct page *page, unsigned long nr_pages);
-#define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
 #else
-#define nth_page(page,n) ((page) + (n))
 static inline bool page_range_contiguous(const struct page *page,
 		unsigned long nr_pages)
 {
tools/testing/scatterlist/linux/mm.h renamed from tools/testing/scatterlist/linux/mm.h~mm-remove-nth_page +0 -1
@@ -51,7 +51,6 @@ static inline unsigned long page_to_phys
 
 #define page_to_pfn(page) ((unsigned long)(page) / PAGE_SIZE)
 #define pfn_to_page(pfn) (void *)((pfn) * PAGE_SIZE)
-#define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
 
 #define __min(t1, t2, min1, min2, x, y) ({              \
 	t1 min1 = (x);                                  \

_

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