Skip to contentSkip to conversation

riscv-stop-calling-page_address-in-free_pages.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: riscv: stop calling page_address() in free_pages()
has been removed from the -mm tree. Its filename was
riscv-stop-calling-page_address-in-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: "Vishal Moola (Oracle)" <[email protected]>
Subject: riscv: stop calling page_address() in free_pages()
Date: Wed, 3 Sep 2025 11:59:18 -0700

free_pages() should be used when we only have a virtual address. We should call __free_pages() directly on our page instead.

Cc Albert Ou <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Jens Axboe <[email protected]>
Cc Justin Sanders <[email protected]>
Cc Madhavan Srinivasan <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc "Michael S. Tsirkin" <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Ritesh Harjani (IBM) <[email protected]>
Cc SeongJae Park <[email protected]>
Cc Will Deacon <[email protected]>

---

 arch/riscv/mm/init.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/riscv/mm/init.c renamed from arch/riscv/mm/init.c~riscv-stop-calling-page_address-in-free_pages +2 -2
@@ -1624,7 +1624,7 @@ static void __meminit free_pud_table(pud
 	if (PageReserved(page))
 		free_reserved_page(page);
 	else
-		free_pages((unsigned long)page_address(page), 0);
+		__free_pages(page, 0);
 	p4d_clear(p4d);
 }
 
@@ -1646,7 +1646,7 @@ static void __meminit free_vmemmap_stora
 		return;
 	}
 
-	free_pages((unsigned long)page_address(page), order);
+	__free_pages(page, order);
 }
 
 static void __meminit remove_pte_mapping(pte_t *pte_base, unsigned long addr, unsigned long end,

_

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