unify PMD scan results and remove redundant cleanup
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
Patches in v2 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mm/khugepaged: remove redundant clearing of struct collapse_controlmm/ | +0 | 4 replies | Applied |
| 2/3 | mm/khugepaged: continue to collapse on SCAN_PMD_NONEmm/ | +1 | 1 reply | Applied |
| 3/3 | mm/khugepaged: unify SCAN_PMD_NONE and SCAN_PMD_NULL into SCAN_NO_PTE_TABLEinclude/ mm/ | +11 | 4 replies | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Lance Yang | Dev Jain | Baolin Wang | David Hildenbrand (Red Hat) | Nico Pache |
|---|---|---|---|---|---|
| 1/3 | R-b | R-b | A-b | R-b | |
| 2/3 | R-b | R-b | R-b | A-b | |
| 3/3 | R-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.
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