Move _ocf_mngt_cache_deinit_services() definition

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Michal Mielewczyk 2025-03-17 14:11:24 +01:00
parent 942825146a
commit 75c4c9b473

View File

@ -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))