Skip to contentSkip to conversation

mm-huge_memory-remove-unnecessary-vm_bug_on_page.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 31

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/huge_memory: remove unnecessary VM_BUG_ON_PAGE()
has been removed from the -mm tree. Its filename was
mm-huge_memory-remove-unnecessary-vm_bug_on_page.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: "Lorenzo Stoakes (Oracle)" <[email protected]>
Subject: mm/huge_memory: remove unnecessary VM_BUG_ON_PAGE()
Date: Fri, 20 Mar 2026 18:07:23 +0000

This has been around since the beginnings of the THP implementation. I think we can safely assume that, if we have a THP folio, it will have a head page.

---

 mm/huge_memory.c |    1 -
 1 file changed, 1 deletion(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-huge_memory-remove-unnecessary-vm_bug_on_page +0 -1
@@ -2452,7 +2452,6 @@ bool zap_huge_pmd(struct mmu_gather *tlb
 		folio = page_folio(page);
 		folio_remove_rmap_pmd(folio, page, vma);
 		WARN_ON_ONCE(folio_mapcount(folio) < 0);
-		VM_BUG_ON_PAGE(!PageHead(page), page);
 	} else if (pmd_is_valid_softleaf(orig_pmd)) {
 		const softleaf_t entry = softleaf_from_pmd(orig_pmd);
 

_

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

maintainers-update-mglru-entry-to-reflect-current-status.patch selftests-mm-add-merge-test-for-partial-msealed-range.patch