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: NLiu Shixin <liushixin2@huawei.com>
Showing
想要评论请 注册 或 登录