Skip to contentSkip to conversation

s390-mm-use-free_reserved_page-in-vmem_free_pages.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 2

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: s390/mm: use free_reserved_page() in vmem_free_pages()
has been removed from the -mm tree. Its filename was
s390-mm-use-free_reserved_page-in-vmem_free_pages.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 (Arm)" <[email protected]>
Subject: s390/mm: use free_reserved_page() in vmem_free_pages()
Date: Mon, 11 May 2026 16:05:35 +0200

We never select CONFIG_HAVE_BOOTMEM_INFO_NODE on s390. Therefore, free_bootmem_page() nowadays always translates to free_reserved_page().

Let's use free_reserved_page() to replace the free_bootmem_page() loop. We can stop including bootmem_info.h.

Likely, vmemmap freeing code could be factored out into the core in the future.

Cc Alexander Gordeev <[email protected]>
Cc Andreas Larsson <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc David S. Miller <[email protected]>
Cc Gerald Schaefer <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Madhavan Srinivasan <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Sven Schnelle <[email protected]>
Cc Vasily Gorbik <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Ritesh Harjani (IBM) <[email protected]>

---

 arch/s390/mm/vmem.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/s390/mm/vmem.c renamed from arch/s390/mm/vmem.c~s390-mm-use-free_reserved_page-in-vmem_free_pages +1 -2
@@ -4,7 +4,6 @@
  */
 
 #include <linux/memory_hotplug.h>
-#include <linux/bootmem_info.h>
 #include <linux/cpufeature.h>
 #include <linux/memblock.h>
 #include <linux/pfn.h>
@@ -51,7 +50,7 @@ static void vmem_free_pages(unsigned lon
 	if (PageReserved(page)) {
 		/* allocated from memblock */
 		while (nr_pages--)
-			free_bootmem_page(page++);
+			free_reserved_page(page++);
 	} else {
 		free_pages(addr, order);
 	}

_

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