Skip to contentSkip to conversation

arm64-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: arm64: stop calling page_address() in free_pages()
has been removed from the -mm tree. Its filename was
arm64-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: arm64: stop calling page_address() in free_pages()
Date: Wed, 3 Sep 2025 11:59:20 -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 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/arm64/mm/mmu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/mm/mmu.c renamed from arch/arm64/mm/mmu.c~arm64-stop-calling-page_address-in-free_pages +1 -1
@@ -836,7 +836,7 @@ static void free_hotplug_page_range(stru
 		vmem_altmap_free(altmap, size >> PAGE_SHIFT);
 	} else {
 		WARN_ON(PageReserved(page));
-		free_pages((unsigned long)page_address(page), get_order(size));
+		__free_pages(page, get_order(size));
 	}
 }
 

_

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