Skip to contentSkip to conversation

mm-mm-percpu-km-drop-nth_page-usage-within-single-allocation.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/mm/percpu-km: drop nth_page() usage within single allocation
has been removed from the -mm tree. Its filename was
mm-mm-percpu-km-drop-nth_page-usage-within-single-allocation.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/mm/percpu-km: drop nth_page() usage within single allocation
Date: Mon, 1 Sep 2025 17:03:35 +0200

We're allocating a higher-order page from the buddy. For these pages (that are guaranteed to not exceed a single memory section) there is no need to use nth_page().

---

 mm/percpu-km.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/percpu-km.c renamed from mm/percpu-km.c~mm-mm-percpu-km-drop-nth_page-usage-within-single-allocation +1 -1
@@ -69,7 +69,7 @@ static struct pcpu_chunk *pcpu_create_ch
 	}
 
 	for (i = 0; i < nr_pages; i++)
-		pcpu_set_page_chunk(nth_page(pages, i), chunk);
+		pcpu_set_page_chunk(pages + i, chunk);
 
 	chunk->data = pages;
 	chunk->base_addr = page_address(pages);

_

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