[PATCH v2 0/2] mm: folio conversion and refactoring in do_swap_page()

Hongfu Li posted 2 patches 1 day, 1 hour ago
mm/memory.c | 119 ++++++++++++++++++++++++++++++----------------------
1 file changed, 69 insertions(+), 50 deletions(-)
[PATCH v2 0/2] mm: folio conversion and refactoring in do_swap_page()
Posted by Hongfu Li 1 day, 1 hour ago
From: Hongfu Li <lihongfu@kylinos.cn>

Convert the device-private migration path in do_swap_page() to use
folio APIs, then extract all non-swap entry handling into a new
do_non_swap_page() helper to improve readability and reduce the
size of the main swap fault function.

Hongfu Li (2):
  mm: Use a folio in the softleaf_is_device_private path
  mm: Extract non-swap page handling to do_non_swap_page()

 mm/memory.c | 119 ++++++++++++++++++++++++++++++----------------------
 1 file changed, 69 insertions(+), 50 deletions(-)

---
v2:
- Drop fault_folio, reuse the existing folio variable instead
- Refresh commit messages
- Update comment to use "folio" instead of "page" in the
  device_private path
- Add Acked-by: David Hildenbrand
- Add patch 2/2 to extract do_non_swap_page() from do_swap_page()
- Link to v1: https://lore.kernel.org/all/20260721013347.65698-1-hongfu.li@linux.dev/
-- 
2.54.0