All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged mm-stable] mm-swap-remove-unneeded-swap_extend_table_try_free-in-swap_dup_entries_cluster.patch removed from -mm tree
@ 2026-10-09  5:58 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-10-09  5:58 UTC (permalink / raw)
  To: mm-commits, youngjun.park, nphamcs, luizcap, kasong, chrisl,
	baoquan.he, baohua, shikemeng, akpm


The quilt patch titled
     Subject: mm, swap: remove unneeded swap_extend_table_try_free() in swap_dup_entries_cluster()
has been removed from the -mm tree.  Its filename was
     mm-swap-remove-unneeded-swap_extend_table_try_free-in-swap_dup_entries_cluster.patch

This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Kemeng Shi <shikemeng@huaweicloud.com>
Subject: mm, swap: remove unneeded swap_extend_table_try_free() in swap_dup_entries_cluster()
Date: Mon, 7 Sep 2026 17:13:56 +0800

Since commit 0475fde0f68de ("mm, swap: avoid leaving unused extend table
after alloc race"), extend table is always allocated when any swap count
reach MAX - 1 and is always freed when swap count decrease to MAX - 1 or
MAX - 2 with cluster lock held.  So the extend table will always be freed
properly when decrease swap count in __swap_cluster_put_entry().  So
swap_extend_table_try_free() outside of __swap_cluster_put_entry() is
unneeded and can be removed.

Link: https://lore.kernel.org/20260907091356.53026-5-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Youngjun Park <youngjun.park@lge.com>
Cc: Baoquan He <baoquan.he@linux.dev>
Cc: Barry Song <baohua@kernel.org>
Cc: Chris Li <chrisl@kernel.org>
Cc: Kairui Song <kasong@tencent.com>
Cc: Luiz Capitulino <luizcap@redhat.com>
Cc: Nhat Pham <nphamcs@gmail.com>
---

 mm/swapfile.c |    1 -
 1 file changed, 1 deletion(-)

--- a/mm/swapfile.c~mm-swap-remove-unneeded-swap_extend_table_try_free-in-swap_dup_entries_cluster
+++ a/mm/swapfile.c
@@ -1725,7 +1725,6 @@ restart:
 failed:
 	while (ci_off-- > ci_start)
 		__swap_cluster_put_entry(ci, ci_off);
-	swap_extend_table_try_free(ci);
 	swap_cluster_unlock(ci);
 	return err;
 }
_

Patches currently in -mm which might be from shikemeng@huaweicloud.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-09  5:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-09  5:58 [merged mm-stable] mm-swap-remove-unneeded-swap_extend_table_try_free-in-swap_dup_entries_cluster.patch removed from -mm tree Andrew Morton

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.