Re: [PATCH v4] mm/zswap: store <PAGE_SIZE compression failed page as-is
From: SeongJae Park
Date: Thu Aug 21 2025 - 12:21:46 EST
On Tue, 19 Aug 2025 12:34:04 -0700 SeongJae Park <sj@xxxxxxxxxx> wrote:
[...]
> Knowing how many compression failures from the crypto engine happened so
> far, and how many incompressible pages are stored at the given moment
> will be useful for future investigations. Add two new debugfs files,
> crypto_compress_fail and stored_incompressible_pages, for the two
> counts, respectively.
[...]
> diff --git a/mm/zswap.c b/mm/zswap.c
> index 3c0fd8a13718..1f1ac043a2d9 100644
> --- a/mm/zswap.c
> +++ b/mm/zswap.c
> @@ -42,8 +42,10 @@
> /*********************************
> * statistics
> **********************************/
> -/* The number of compressed pages currently stored in zswap */
> +/* The number of pages currently stored in zswap */
> atomic_long_t zswap_stored_pages = ATOMIC_LONG_INIT(0);
> +/* The number of incompressible pages currently stored in zswap */
> +atomic_long_t zswap_stored_incompressible_pages = ATOMIC_LONG_INIT(0);
Kernel test robot reported a sparse warning for the above line. Andrew, could
you please add below attached fixup?
Thanks,
SJ
[...]
==== Attachment 0 (0001-mm-zswap-mark-zswap_stored_incompressible_pages-as-s.patch) ====