fs-proc-task_mmu-use-huge_page_size-in-pagemap_scan_hugetlb_entry.patch removed from -mm tree
The quilt patch titled
Subject: fs/proc/task_mmu: use huge_page_size() in pagemap_scan_hugetlb_entry()
has been removed from the -mm tree. Its filename was
fs-proc-task_mmu-use-huge_page_size-in-pagemap_scan_hugetlb_entry.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 (Meta)" <[email protected]>
Subject: fs/proc/task_mmu: use huge_page_size() in pagemap_scan_hugetlb_entry()
Date: Fri, 29 May 2026 18:23:26 +0100
The partial-page check compares against HPAGE_SIZE (PMD_SIZE), which is wrong for gigantic hugetlb hstates (e.g. 1G). The walker hands the callback a huge_page_size()-sized range, never start + HPAGE_SIZE, so the comparison always declares it partial and aborts the WP. Compare against the actual hstate's page size.
---
fs/proc/task_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/proc/task_mmu.c renamed from fs/proc/task_mmu.c~fs-proc-task_mmu-use-huge_page_size-in-pagemap_scan_hugetlb_entry +1 -1
@@ -2960,7 +2960,7 @@ static int pagemap_scan_hugetlb_entry(ptif (~categories &PAGE_IS_WRITTEN ) goto out_unlock; -if (end != start +HPAGE_SIZE ) { +if (end != start +huge_page_size (hstate_vma (vma))) {/* Partial HugeTLB page WP isn't possible. */ pagemap_scan_backout_range (p, start, end); p->arg.walk_end = start;
_
Patches currently in -mm which might be from [email protected] are