mm-khugepaged-remove-redundant-clearing-of-struct-collapse_control.patch removed from -mm tree
The quilt patch titled
Subject: mm/khugepaged: remove redundant clearing of struct collapse_control
has been removed from the -mm tree. Its filename was
mm-khugepaged-remove-redundant-clearing-of-struct-collapse_control.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: Wei Yang <[email protected]>
Subject: mm/khugepaged: remove redundant clearing of struct collapse_control
Date: Fri, 14 Nov 2025 03:00:26 +0000
Patch series "unify PMD scan results and remove redundant cleanup", v2.
This small series addresses two minor cleanup opportunities in the hugepage collapse logic.
The initial motivation arose during a code review of madvise_collapse(), where it was noted that the function was missing a handler for SCAN_PMD_NONE. This oversight exposed the inconsistent handling of SCAN_PMD_NULL and SCAN_PMD_NONE.
Since both scan results are functionally identical (they indicate the absence of a PTE table), the primary patch unifies them into a single, clearer identifier, SCAN_NO_PTE_TABLE.
The series also takes the opportunity to remove a redundant clearing of the struct collapse_control.
This patch (of 3):
The structure struct collapse_control is being unnecessarily cleared twice during the huge page collapse process.
Both hpage_collapse_scan_file() and hpage_collapse_scan_pmd() currently perform a clear operation on this structure.
Remove the redundant clear operation.
---
mm/khugepaged.c | 2 -- 1 file changed, 2 deletions(-)
mm/khugepaged.c renamed from mm/khugepaged.c~mm-khugepaged-remove-redundant-clearing-of-struct-collapse_control +0 -2
@@ -2803,8 +2803,6 @@ int madvise_collapse(struct vm_area_stru hend =min (hend, vma->vm_end &HPAGE_PMD_MASK ); }mmap_assert_locked (mm); -memset (cc->node_load,0 ,sizeof (cc->node_load)); -nodes_clear (cc->alloc_nmask);if (!vma_is_anonymous (vma)) {struct file *file =get_file (vma->vm_file);pgoff_t pgoff =linear_page_index (vma, addr);
_
Patches currently in -mm which might be from [email protected] are