Skip to content

Commit ea6de4f

Browse files
Sun YangKaiakpm00
authored andcommitted
mm: zswap: use ATOMIC_LONG_INIT to initialize zswap_stored_pages
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 6e1fa55, in which we modified the type of zswap_stored_pages to atomic_long_t, but didn't change the initialization. Link: https://lkml.kernel.org/r/[email protected] Fixes: 6e1fa55 ("mm: zswap: modify zswap_stored_pages to be atomic_long_t") Signed-off-by: Sun YangKai <[email protected]> Acked-by: Yosry Ahmed <[email protected]> Acked-by: David Hildenbrand <[email protected]> Cc: Chengming Zhou <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Kanchana P Sridhar <[email protected]> Cc: Nhat Pham <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 0583135 commit ea6de4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/zswap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* statistics
4444
**********************************/
4545
/* The number of compressed pages currently stored in zswap */
46-
atomic_long_t zswap_stored_pages = ATOMIC_INIT(0);
46+
atomic_long_t zswap_stored_pages = ATOMIC_LONG_INIT(0);
4747

4848
/*
4949
* The statistics below are not protected from concurrent access for

0 commit comments

Comments
 (0)