All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] mm: folio conversion and refactoring in do_swap_page()
@ 2026-07-27 16:14 Hongfu Li
  2026-07-27 16:14 ` [PATCH v3 1/2] mm: Use a folio in the softleaf_is_device_private path Hongfu Li
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hongfu Li @ 2026-07-27 16:14 UTC (permalink / raw)
  To: akpm, david, ljs, liam, vbabka, rppt, surenb, mhocko
  Cc: linux-mm, linux-kernel, hongfu.li, Hongfu Li

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 entry handling to do_nonswap_softleaf()

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

---
v3:
- Rename do_non_swap_page() to do_nonswap_softleaf().
- Update the commit subject and body of patch 2/2 accordingly.
- Drop a blank line after the device_private condition in
  do_nonswap_softleaf().
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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-27 16:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-27 16:14 [PATCH v3 0/2] mm: folio conversion and refactoring in do_swap_page() Hongfu Li
2026-07-27 16:14 ` [PATCH v3 1/2] mm: Use a folio in the softleaf_is_device_private path Hongfu Li
2026-07-27 16:14 ` [PATCH v3 2/2] mm: Extract non-swap entry handling to do_nonswap_softleaf() Hongfu Li
2026-07-27 16:45 ` [PATCH v3 0/2] mm: folio conversion and refactoring in do_swap_page() Hongfu Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.