lkml.org 
[lkml]   [2023]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -next v7 3/4] mm/zswap: replace zswap_init_{started/failed} with zswap_init_state
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.

\
 
 \ /
  Last update: 2023-03-27 01:26    [W:1.172 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site