The patch titled Subject: mm: zswap: use ATOMIC_LONG_INIT to initialize zswap_stored_pages has been added to the -mm mm-unstable branch. Its filename is mm-zswap-use-atomic_long_init-to-initialize-zswap_stored_pages.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-zswap-use-atomic_long_init-to-initialize-zswap_stored_pages.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Sun YangKai <sunk67188@xxxxxxxxx> Subject: mm: zswap: use ATOMIC_LONG_INIT to initialize zswap_stored_pages Date: Wed, 26 Feb 2025 16:04:09 +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 Link: https://lkml.kernel.org/r/20250226080410.10433-1-sunk67188@xxxxxxxxx Signed-off-by: Sun YangKai <sunk67188@xxxxxxxxx> Cc: Chengming Zhou <chengming.zhou@xxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Nhat Pham <nphamcs@xxxxxxxxx> Cc: Yosry Ahmed <yosry.ahmed@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/zswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/zswap.c~mm-zswap-use-atomic_long_init-to-initialize-zswap_stored_pages +++ a/mm/zswap.c @@ -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 sunk67188@xxxxxxxxx are mm-zswap-use-atomic_long_init-to-initialize-zswap_stored_pages.patch