mm/zswap: replace zswap_init_{started/failed} with zswap_init_state
authorLiu Shixin <liushixin2@huawei.com>
Mon, 3 Apr 2023 12:13:17 +0000 (20:13 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:29:48 +0000 (16:29 -0700)
commit9021ccec60f2d86b84080a7e262c91ea99495eaa
tree07361d3ab36f8aa17ef2fe6580f1845910987ec3
parentb791912252716168697a258bd8bbf579296ba438
mm/zswap: replace zswap_init_{started/failed} with zswap_init_state

The zswap_init_started variable name has a bit confusing.  Actually, there
are three state: uninitialized, initial failed and initial succeed.  Add a
new variable zswap_init_state to replace zswap_init_{started/failed}.

Link: https://lkml.kernel.org/r/20230403121318.1876082-3-liushixin2@huawei.com
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zswap.c