linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] mm: swap: small fixes and comment cleanups
@ 2025-10-31  6:50 Youngjun Park
  2025-10-31  6:50 ` [PATCH v2 1/5] mm, swap: Fix memory leak in setup_clusters() error path Youngjun Park
                   ` (4 more replies)
  0 siblings, 5 replies; 22+ messages in thread
From: Youngjun Park @ 2025-10-31  6:50 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-mm, Kemeng Shi, Kairui Song, Nhat Pham, Baoquan He,
	Barry Song, Chris Li, youngjun.park

Hello,
This series provides a few small fixes and cleanups for the swap code.

The first patch fixes a memory leak in an error path that was recently
introduced. The subsequent patches include minor logic adjustments and
the removal of redundant comments.

This version addresses feedback from Kairui Song. Thank you for the
review.

---
v1->v2:
 - Reworked the error path in setup_clusters() to use a single exit
   label as suggested by Kairui.
 - Added a Fixes: tag to the first patch to identify the commit that
   introduced.
 - Added Kairui's Reviewed-by tag.

Link to v1:
https://lore.kernel.org/linux-mm/20251029085659.2005942-1-youngjun.park@lge.com/
---

Youngjun Park (5):
  mm, swap: Fix memory leak in setup_clusters() error path
  mm, swap: Use SWP_SOLIDSTATE to determine if swap is rotational
  mm, swap: Remove redundant comment for read_swap_cache_async
  mm: swap: change swap_alloc_slow() to void
  mm: swap: remove scan_swap_map_slots() references from comments

 mm/swap_state.c |  4 ----
 mm/swapfile.c   | 34 +++++++++++++++-------------------
 2 files changed, 15 insertions(+), 23 deletions(-)

base-commit: df412f2f12d492234da858e4dbaeabed9ecff3c4 (mm-new)
-- 
2.34.1



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

end of thread, other threads:[~2025-11-20 18:35 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-31  6:50 [PATCH v2 0/5] mm: swap: small fixes and comment cleanups Youngjun Park
2025-10-31  6:50 ` [PATCH v2 1/5] mm, swap: Fix memory leak in setup_clusters() error path Youngjun Park
2025-11-01  0:01   ` Baoquan He
2025-11-05  4:30   ` Chris Li
2025-10-31  6:50 ` [PATCH v2 2/5] mm, swap: Use SWP_SOLIDSTATE to determine if swap is rotational Youngjun Park
2025-11-01  0:02   ` Baoquan He
2025-11-05  4:30   ` Chris Li
2025-10-31  6:50 ` [PATCH v2 3/5] mm, swap: Remove redundant comment for read_swap_cache_async Youngjun Park
2025-11-01  0:02   ` Baoquan He
2025-11-05  6:03   ` Chris Li
2025-11-05  7:58     ` Chris Li
2025-11-05  9:27       ` YoungJun Park
2025-11-06  0:29       ` Andrew Morton
2025-11-20  5:00         ` Chris Li
2025-11-20 16:54           ` Andrew Morton
2025-11-20 18:34             ` Chris Li
2025-10-31  6:50 ` [PATCH v2 4/5] mm: swap: change swap_alloc_slow() to void Youngjun Park
2025-11-01  0:03   ` Baoquan He
2025-11-05  6:04   ` Chris Li
2025-10-31  6:50 ` [PATCH v2 5/5] mm: swap: remove scan_swap_map_slots() references from comments Youngjun Park
2025-11-01  0:03   ` Baoquan He
2025-11-05  6:50   ` Chris Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox