Skip to contentSkip to conversation

mm-zswap-use-atomic_long_init-to-initialize-zswap_stored_pages.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Mar 6, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: zswap: use ATOMIC_LONG_INIT to initialize zswap_stored_pages
has been removed from the -mm tree. Its filename was
mm-zswap-use-atomic_long_init-to-initialize-zswap_stored_pages.patch

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

------------------------------------------------------
From: Sun YangKai <[email protected]>
Subject: mm: zswap: use ATOMIC_LONG_INIT to initialize zswap_stored_pages
Date: Wed, 26 Feb 2025 23:32:43 +0800

This is currently the only atomic_long_t variable initialized by ATOMIC_INIT macro found in the kernel by using grep -r atomic_long_t | grep ATOMIC_INIT

This was introduced in 6e1fa555ec77, in which we modified the type of zswap_stored_pages to atomic_long_t, but didn't change the initialization.

Fixes 6e1fa555ec77 ("mm: zswap: modify zswap_stored_pages to be atomic_long_t")
Cc Chengming Zhou <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Kanchana P Sridhar <[email protected]>
Cc Nhat Pham <[email protected]>

---

 mm/zswap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/zswap.c renamed from mm/zswap.c~mm-zswap-use-atomic_long_init-to-initialize-zswap_stored_pages +1 -1
@@ -43,7 +43,7 @@
 * statistics
 **********************************/
 /* The number of compressed pages currently stored in zswap */
-atomic_long_t zswap_stored_pages = ATOMIC_INIT(0);
+atomic_long_t zswap_stored_pages = ATOMIC_LONG_INIT(0);
 
 /*
  * The statistics below are not protected from concurrent access for

_

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