Skip to contentSkip to conversation

arch-x86-do-not-explicitly-clear-reserved-flag-in-free_pagetable.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 25, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: arch/x86: do not explicitly clear Reserved flag in free_pagetable
has been removed from the -mm tree. Its filename was
arch-x86-do-not-explicitly-clear-reserved-flag-in-free_pagetable.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: Oscar Salvador <[email protected]>
Subject: arch/x86: do not explicitly clear Reserved flag in free_pagetable
Date: Mon, 27 May 2024 06:45:23 +0200

In free_pagetable() we use the non-atomic version for clearing the PageReserved bit from the page. free_pagetable() will either call free_reserved_page() or put_page_bootmem(), which will eventually end up calling free_reserved_page(), and in there we already clear the PageReserved flag.

---

 arch/x86/mm/init_64.c |    2 --
 1 file changed, 2 deletions(-)
arch/x86/mm/init_64.c renamed from arch/x86/mm/init_64.c~arch-x86-do-not-explicitly-clear-reserved-flag-in-free_pagetable +0 -2
@@ -980,8 +980,6 @@ static void __meminit free_pagetable(str
 
 	/* bootmem page has reserved flag */
 	if (PageReserved(page)) {
-		__ClearPageReserved(page);
-
 		magic = page->index;
 		if (magic == SECTION_INFO || magic == MIX_SECTION_INFO) {
 			while (nr_pages--)

_

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