[PATCH v3 0/4] mm, swap: some random fixes and cleanups

From: Kemeng Shi

Date: Mon Sep 07 2026 - 05:14:33 EST


Hello all,

This series contains some random fixes and cleanups. More details
can be found in respective patches.

Thanks!

v1->v2:
- Collect RVB from Youngjun nad Youngjun
- Some minor improvements
v2->v3:
- Address memleak problem in patch 1
- Add description of current memory order guarantee in patch 1
- Collect Ack-by from Kairui


Kemeng Shi (4):
mm, swap: Fix potential NULL dereference when trying a sleep table
allocation
mm, swap: Move setup_swap_clusters_info() after SWP_SOLIDSTATE
initialization
mm, swap: return early from swap_extend_table_try_free() on first
non-zero entry
mm, swap: Remove unneeded swap_extend_table_try_free() in
swap_dup_entries_cluster()

mm/swapfile.c | 53 ++++++++++++++++++++++++++++++---------------------
1 file changed, 31 insertions(+), 22 deletions(-)

--
2.36.1