Skip to content

mm: mincore: misc cleanups

Kefeng Wang linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 10 repliesIn review

Changes in v2 from the cover letter

- Separate per-VMA lock changes as suggested by Pedro, it should be based on the new API [1], will resend once new API out.
- Check VM_PFNMAP explicitly in can_do_mincore() to avoid trigger a split in the page table walk, found in sashiko[[2]
- Replace GFP_USER with GFP_KERNEL, suggested by Andrew
- Add Pedro RB and mincore_page() refactor patch

[1] https://lore.kernel.org/linux-mm/[email protected]/
[2] https://sashiko.dev/#/patchset/20260701144047.3786939-1-wangkefeng.wang%40huawei.com?part=2

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mm: mincore: remove special handling for VM_PFNMAPmm/mincore.c+1 -95 replies
2/5mm: mincore: replace __get_free_page() with kmalloc()mm/mincore.c+3 -21 reply
3/5mm: mincore: remove xa_is_value() in mincore_swap()mm/mincore.c+1 -21 reply
4/5mm: mincore: improve mincore_hugetlb()mm/mincore.c+7 -202 replies
5/5mm: mincore: refactor mincore_page()mm/mincore.c+10 -111 reply

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchPedro FalcatoDavid Hildenbrand (Arm)
1/5
2/5R-b A-b
3/5R-b A-b
4/5R-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] mm: mincore: misc cleanups

This series cleans up and simplifies the mincore. Most importantly, it removes the historical special handling for VM_PFNMAP mappings, reporting them as resident memory instead of always being non-resident memory.

v2:
- Separate per-VMA lock changes as suggested by Pedro, it should be based on the new API [1], will resend once new API out.
- Check VM_PFNMAP explicitly in can_do_mincore() to avoid trigger a split in the page table walk, found in sashiko[[2]
- Replace GFP_USER with GFP_KERNEL, suggested by Andrew
- Add Pedro RB and mincore_page() refactor patch

[1] https://lore.kernel.org/linux-mm/[email protected]/
[2] https://sashiko.dev/#/patchset/20260701144047.3786939-1-wangkefeng.wang%40huawei.com?part=2

Kefeng Wang (5):
mm: mincore: remove special handling for VM_PFNMAP
mm: mincore: replace __get_free_page() with kmalloc()
mm: mincore: remove xa_is_value() in mincore_swap()
mm: mincore: improve mincore_hugetlb()
mm: mincore: refactor mincore_page()

 mm/mincore.c | 66 ++++++++++++++++++----------------------------------
 1 file changed, 22 insertions(+), 44 deletions(-)
Signature · 1 line
2.55.0