Skip to content

unify PMD scan results and remove redundant cleanup

Wei Yang linux-mm 1 version Applied

Status from this message: [merged mm-stable] mm-khugepaged-unify-scan_pmd_none-and-scan_pmd_null-into-scan_no_pte_table.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 9 repliesApplied 3/3

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3mm/khugepaged: remove redundant clearing of struct collapse_controlmm/khugepaged.c+0 -24 repliesApplied
2/3mm/khugepaged: continue to collapse on SCAN_PMD_NONEmm/khugepaged.c+1 -01 replyApplied
3/3mm/khugepaged: unify SCAN_PMD_NONE and SCAN_PMD_NULL into SCAN_NO_PTE_TABLEinclude/trace/events/huge_memory.h mm/khugepaged.c+11 -154 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLance YangDev JainBaolin WangDavid Hildenbrand (Red Hat)Nico Pache
1/3R-b R-b A-b R-b
2/3R-b R-b R-b A-b
3/3R-b R-b A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [Patch v2 0/3] unify PMD scan results and remove redundant cleanup

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.

---
v1: http://lkml.kernel.org/r/[email protected]

Wei Yang (3):
mm/khugepaged: remove redundant clearing of struct collapse_control mm/khugepaged: continue to collapse on SCAN_PMD_NONE mm/khugepaged: unify SCAN_PMD_NONE and SCAN_PMD_NULL into
SCAN_NO_PTE_TABLE

 include/trace/events/huge_memory.h |  3 +--
 mm/khugepaged.c                    | 24 ++++++++++--------------
 2 files changed, 11 insertions(+), 16 deletions(-)
Signature · 1 line
2.34.1