Add OCF API ocf_cache_is_initializing
Signed-off-by: Amir Haroush <amir.haroush@huawei.com> Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com> Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
committed by
Robert Baldyga
parent
64a46a78cb
commit
6cb1ff71c2
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright(c) 2012-2022 Intel Corporation
|
||||
* Copyright(c) 2023 Huawei Technologies
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
@@ -73,6 +74,12 @@ bool ocf_cache_is_running(ocf_cache_t cache)
|
||||
return env_bit_test(ocf_cache_state_running, &cache->cache_state);
|
||||
}
|
||||
|
||||
bool ocf_cache_is_initializing(ocf_cache_t cache)
|
||||
{
|
||||
OCF_CHECK_NULL(cache);
|
||||
return env_bit_test(ocf_cache_state_initializing, &cache->cache_state);
|
||||
}
|
||||
|
||||
bool ocf_cache_is_standby(ocf_cache_t cache)
|
||||
{
|
||||
OCF_CHECK_NULL(cache);
|
||||
|
||||
Reference in New Issue
Block a user