Skip to contentSkip to conversation

x86-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: x86: stop calling page_address() in free_pages()
has been removed from the -mm tree. Its filename was
x86-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: x86: stop calling page_address() in free_pages()
Date: Wed, 3 Sep 2025 11:59:17 -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 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/x86/mm/init_64.c          |    2 +-
 arch/x86/platform/efi/memmap.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/init_64.c renamed from arch/x86/mm/init_64.c~x86-stop-calling-page_address-in-free_pages +1 -1
@@ -1031,7 +1031,7 @@ static void __meminit free_pagetable(str
 		free_reserved_pages(page, nr_pages);
 #endif
 	} else {
-		free_pages((unsigned long)page_address(page), order);
+		__free_pages(page, order);
 	}
 }
 
arch/x86/platform/efi/memmap.c renamed from arch/x86/platform/efi/memmap.c~x86-stop-calling-page_address-in-free_pages +1 -1
@@ -42,7 +42,7 @@ void __init __efi_memmap_free(u64 phys,
 		struct page *p = pfn_to_page(PHYS_PFN(phys));
 		unsigned int order = get_order(size);
 
-		free_pages((unsigned long) page_address(p), order);
+		__free_pages(p, order);
 	}
 }
 

_

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