Move _ocf_mngt_cache_deinit_services() definition
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
parent
942825146a
commit
75c4c9b473
@ -2200,7 +2200,13 @@ static void ocf_mngt_cache_stop_deinit_services_complete(void *priv, int error)
|
||||
ocf_pipeline_next(context->pipeline);
|
||||
}
|
||||
|
||||
static void _ocf_mngt_cache_deinit_services(ocf_cache_t cache);
|
||||
static void _ocf_mngt_cache_deinit_services(ocf_cache_t cache)
|
||||
{
|
||||
ocf_stop_cleaner(cache);
|
||||
|
||||
__deinit_cleaning_policy(cache);
|
||||
__deinit_promotion_policy(cache);
|
||||
}
|
||||
|
||||
static void ocf_mngt_cache_stop_deinit_services(ocf_pipeline_t pipeline,
|
||||
void *priv, ocf_pipeline_arg_t arg)
|
||||
@ -3202,18 +3208,6 @@ void ocf_mngt_cache_attach(ocf_cache_t cache,
|
||||
_ocf_mngt_cache_attach(cache, cfg, _ocf_mngt_cache_attach_complete, cmpl, priv);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Stop cleaner, deinitialize cleaning policy and promotion policy
|
||||
* metadata
|
||||
*/
|
||||
static void _ocf_mngt_cache_deinit_services(ocf_cache_t cache)
|
||||
{
|
||||
ocf_stop_cleaner(cache);
|
||||
|
||||
__deinit_cleaning_policy(cache);
|
||||
__deinit_promotion_policy(cache);
|
||||
}
|
||||
|
||||
static int _ocf_mngt_cache_load_core_log(ocf_core_t core, void *cntx)
|
||||
{
|
||||
if (ocf_core_state_active == ocf_core_get_state(core))
|
||||
|
Loading…
Reference in New Issue
Block a user