Skip to content

mm/khugepaged: cleanups and scan limit fix

Shivank Garg linux-mm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 26 repliesIn review 4 of 5 applied
  2. v25 patches 10 repliesSuperseded
  3. v13 patches 20 repliesSuperseded

Changes in v3 from the cover letter

- Fold mm-khugepaged-count-small-vmas-towards-scan-limit-fix: add comment (Lance)
- Remove extern and use two tabs indent (David)

Patches in v3 4 of 5 applied

#Subject and filesSizeRepliesApplied
1/5mm/khugepaged: remove unnecessary goto 'skip' labelmm/khugepaged.c+4 -32 repliesApplied
2/5mm/khugepaged: count small VMAs towards scan limitmm/khugepaged.c+3 -26 replies
3/5mm/khugepaged: change collapse_pte_mapped_thp() to return voidinclude/linux/khugepaged.h mm/khugepaged.c+27 -221 replyApplied
4/5mm/khugepaged: use enum scan_result for result variables and return typesmm/khugepaged.c+46 -533 repliesApplied
5/5mm/khugepaged: make khugepaged_collapse_control staticmm/khugepaged.c+1 -111 repliesApplied

Reviews trailers per patch

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

PatchLiam R. HowlettZi YanDavid Hildenbrand (Red Hat)Lance YangWei YangAnshuman KhandualDev JainNico Pache
1/5R-b R-b A-b R-b R-b T-b R-b
2/5R-b R-b
3/5R-b A-b A-b T-b R-b
4/5R-b A-b R-b T-b R-b
5/5R-b A-b R-b R-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 8 reviewers.

Read the v3 thread

Cover letter [PATCH V3 0/5] mm/khugepaged: cleanups and scan limit fix

This series contains several cleanups for mm/khugepaged.c to improve code readability and type safety, and one functional fix to ensure khugepaged_scan_mm_slot() correctly accounts for small VMAs towards scan limit.

To apply this series on mm-new, please drop:
- [email protected]:
[PATCH V4 0/2] mm/khugepaged: fix dirty page handling for MADV_COLLAPSE
- [email protected]:
[PATCH V2 0/5] mm/khugepaged: cleanups and scan limit fix

- Apply https://lore.kernel.org/all/[email protected]
[PATCH V5 0/2] mm/khugepaged: fix dirty page handling for MADV_COLLAPSE

Thanks,

v3:
- Fold mm-khugepaged-count-small-vmas-towards-scan-limit-fix: add comment (Lance)
- Remove extern and use two tabs indent (David)

v2:
- https://lore.kernel.org/all/[email protected]
- Added a fix for small VMAs not being counted in the scan limit (Wei)
- Updated 'progress' to 'unsigned int' to match types
- Update return types of internal functions to use enum scan_result (Zi)
- Add void wrapper collapse_pte_mapped_thp() for external callers to avoid exposing internal enum (David)

v1:
https://lore.kernel.org/linux-mm/[email protected]

Shivank Garg (5):
mm/khugepaged: remove unnecessary goto 'skip' label mm/khugepaged: count small VMAs towards scan limit mm/khugepaged: change collapse_pte_mapped_thp() to return void mm/khugepaged: use enum scan_result for result variables and return
types
mm/khugepaged: make khugepaged_collapse_control static

 include/linux/khugepaged.h |   9 +--
 mm/khugepaged.c            | 149 +++++++++++++++++++------------------
 2 files changed, 79 insertions(+), 79 deletions(-)
Signature · 1 line
2.43.0