loongarch-mm-align-vmemmap-to-maximal-folio-size.patch removed from -mm tree
The quilt patch titled
Subject: LoongArch/mm: align vmemmap to maximal folio size
has been removed from the -mm tree. Its filename was
loongarch-mm-align-vmemmap-to-maximal-folio-size.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: Kiryl Shutsemau <[email protected]>
Subject: LoongArch/mm: align vmemmap to maximal folio size
Date: Fri, 27 Feb 2026 19:42:44 +0000
The upcoming change to the HugeTLB vmemmap optimization (HVO) requires struct pages of the head page to be naturally aligned with regard to the folio size.
Align vmemmap to MAX_FOLIO_VMEMMAP_ALIGN.
---
arch/loongarch/include/asm/pgtable.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/loongarch/include/asm/pgtable.h renamed from arch/loongarch/include/asm/pgtable.h~loongarch-mm-align-vmemmap-to-maximal-folio-size +2 -1
@@ -104,7 +104,8 @@ struct vm_area_struct; min(PTRS_PER_PGD * PTRS_PER_PUD * PTRS_PER_PMD * PTRS_PER_PTE * PAGE_SIZE, (1UL << cpu_vabits) / 2) - PMD_SIZE - VMEMMAP_SIZE - KFENCE_AREA_SIZE)#endif -#define vmemmap ((struct page *)((VMALLOC_END + PMD_SIZE) & PMD_MASK)) +#define VMEMMAP_ALIGN max(PMD_SIZE, MAX_FOLIO_VMEMMAP_ALIGN) +#define vmemmap ((struct page *)(ALIGN(VMALLOC_END, VMEMMAP_ALIGN)))#define VMEMMAP_END ((unsigned long)vmemmap + VMEMMAP_SIZE - 1)#define KFENCE_AREA_START (VMEMMAP_END + 1)
_
Patches currently in -mm which might be from [email protected] are