Skip to contentSkip to conversation

mm-zswap-skip-xarray-walk-in-zswap_invalidate-when-zswap-is-unused.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Oct 9

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: zswap: skip xarray walk in zswap_invalidate() when zswap is unused
has been removed from the -mm tree. Its filename was
mm-zswap-skip-xarray-walk-in-zswap_invalidate-when-zswap-is-unused.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: Kefeng Wang <[email protected]>
Subject: mm: zswap: skip xarray walk in zswap_invalidate() when zswap is unused
Date: Thu, 10 Sep 2026 20:35:43 +0800

zswap_invalidate() still walks the per-area xarray even when zswap has never been enabled. Add a zswap_never_enabled() to skip it.

---

 mm/zswap.c |    3 +++
 1 file changed, 3 insertions(+)
mm/zswap.c renamed from mm/zswap.c~mm-zswap-skip-xarray-walk-in-zswap_invalidate-when-zswap-is-unused +3 -0
@@ -1667,6 +1667,9 @@ void zswap_invalidate(int type, pgoff_t
 	struct xarray *tree;
 	unsigned long i;
 
+	if (zswap_never_enabled())
+		return;
+
 	for (i = 0; i < nr_entries; i++) {
 		tree = zswap_tree(type, offset + i);
 

_

Patches currently in -mm which might be from [email protected] are

mm-mincore-use-per-vma-lock-during-page-table-walk.patch