Re: [PATCH -next v7 3/4] mm/zswap: replace zswap_init_{started/failed} with zswap_init_state

Christoph Hellwig
2023-03-26T23:26:32Z

On Sat, Mar 25, 2023 at 03:14:19PM +0800, Liu Shixin wrote:
> -/* used by param callback function */
> -static bool zswap_init_started;
> +#define ZSWAP_UNINIT 0x0
> +#define ZSWAP_INIT_SUCCEED 0x1
> +#define ZSWAP_INIT_FAILED 0x2

This should be a (named) enum.