Extend cache state API
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
parent
047e07c062
commit
2f0b86f5ca
@ -181,6 +181,8 @@ struct ocf_cache_attach_context {
|
|||||||
ocf_pipeline_t pipeline;
|
ocf_pipeline_t pipeline;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void _ocf_mngt_cache_set_detached(ocf_cache_t cache);
|
||||||
|
|
||||||
static void __init_partitions(ocf_cache_t cache)
|
static void __init_partitions(ocf_cache_t cache)
|
||||||
{
|
{
|
||||||
ocf_part_id_t i_part;
|
ocf_part_id_t i_part;
|
||||||
@ -1574,6 +1576,12 @@ static void _ocf_mngt_cache_set_active(ocf_cache_t cache)
|
|||||||
env_bit_set(ocf_cache_state_running, &cache->cache_state);
|
env_bit_set(ocf_cache_state_running, &cache->cache_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void _ocf_mngt_cache_set_detached(ocf_cache_t cache)
|
||||||
|
{
|
||||||
|
env_bit_clear(ocf_cache_state_running, &cache->cache_state);
|
||||||
|
env_bit_set(ocf_cache_state_detached, &cache->cache_state);
|
||||||
|
}
|
||||||
|
|
||||||
static void _ocf_mngt_init_attached_nonpersistent(ocf_pipeline_t pipeline,
|
static void _ocf_mngt_init_attached_nonpersistent(ocf_pipeline_t pipeline,
|
||||||
void *priv, ocf_pipeline_arg_t arg)
|
void *priv, ocf_pipeline_arg_t arg)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user