Commit 3286455e authored by Liu Shixin's avatar Liu Shixin Committed by Ma Wupeng
Browse files

mm/zswap: replace zswap_init_{started/failed} with zswap_init_state

hulk inclusion
category: performance
bugzilla: 187468, https://gitee.com/openeuler/kernel/issues/I61HSG



--------------------------------

zswap_init_started indicates that the initialization is started. And
zswap_init_failed indicates that the initialization is failed. As we will
support to init zswap after system startup, it's necessary to add a state
to indicate the initialization is complete and succeed to avoid
concurrency issues. Since we don't care about the difference between
init started with init completion. We only need three states:
uninitialized, initial failed, initial succeed.

Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
parent 1b709179
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment