linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] mm/swapfile.c and swap.h cleanup
@ 2025-08-12  7:10 Chris Li
  2025-08-12  7:10 ` [PATCH v3 1/2] mm/swapfile.c: introduce function alloc_swap_scan_list() Chris Li
  2025-08-12  7:10 ` [PATCH v3 2/2] mm: swap.h: Remove deleted field from comments Chris Li
  0 siblings, 2 replies; 9+ messages in thread
From: Chris Li @ 2025-08-12  7:10 UTC (permalink / raw)
  To: Andrew Morton, Kemeng Shi, Kairui Song, Nhat Pham, Baoquan He,
	Barry Song, Huang, Ying
  Cc: linux-mm, linux-kernel, Chris Li

This patch series, which builds on Kairui's swap improve cluster scan series.
https://lore.kernel.org/linux-mm/20250806161748.76651-1-ryncsn@gmail.com/

It introduces a new function, alloc_swap_scan_list(), for swapfile.c.

It also cleans up swap.h by removing comments that reference fields that
have been deleted.

There are no functional changes in this two-patch series.

Signed-off-by: Chris Li <chrisl@kernel.org>
---
Changes in v3:
- Fix a few scan_all argument to match having while loop or not.
- Update comment message.
- Add a ptach to clean up the comments in swap.h
- Link to v2: https://lore.kernel.org/r/20250808-swap-scan-list-v2-1-d50e4758ecee@kernel.org

Changes in v2:
- Adjust change base on Andrew's feedback on int type and break out of
  loop.
- Link to v1: https://lore.kernel.org/r/20250806-swap-scan-list-v1-1-a5fe2d9340a2@kernel.org

---
Chris Li (2):
      mm/swapfile.c: introduce function alloc_swap_scan_list()
      mm: swap.h: Remove deleted field from comments

 include/linux/swap.h |  7 ++---
 mm/swapfile.c        | 86 ++++++++++++++++++++++++++++------------------------
 2 files changed, 49 insertions(+), 44 deletions(-)
---
base-commit: f89484324d5876ee10765fa61da0332899fa1a6a
change-id: 20250806-swap-scan-list-2b89e3424b0a

Best regards,
-- 
Chris Li <chrisl@kernel.org>


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

end of thread, other threads:[~2025-08-13 14:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-12  7:10 [PATCH v3 0/2] mm/swapfile.c and swap.h cleanup Chris Li
2025-08-12  7:10 ` [PATCH v3 1/2] mm/swapfile.c: introduce function alloc_swap_scan_list() Chris Li
2025-08-12 16:56   ` Kairui Song
2025-08-13  6:13     ` Chris Li
2025-08-13 14:57   ` Nhat Pham
2025-08-12  7:10 ` [PATCH v3 2/2] mm: swap.h: Remove deleted field from comments Chris Li
2025-08-12 17:04   ` Kairui Song
2025-08-13 11:05   ` Barry Song
2025-08-13 14:58   ` Nhat Pham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).