@@ -1179,7 +1179,7 @@ static void _ocf_mngt_cache_init(ocf_cache_t cache,
11791179}
11801180
11811181static int _ocf_mngt_cache_start (ocf_ctx_t ctx , ocf_cache_t * cache ,
1182- struct ocf_mngt_cache_config * cfg )
1182+ struct ocf_mngt_cache_config * cfg , void * priv )
11831183{
11841184 struct ocf_cache_mngt_init_params params ;
11851185 ocf_cache_t tmp_cache ;
@@ -1208,6 +1208,7 @@ static int _ocf_mngt_cache_start(ocf_ctx_t ctx, ocf_cache_t *cache,
12081208
12091209 tmp_cache = params .cache ;
12101210 tmp_cache -> owner = ctx ;
1211+ tmp_cache -> priv = priv ;
12111212
12121213 /*
12131214 * Initialize metadata selected segments of metadata in memory
@@ -1946,7 +1947,7 @@ static const char *_ocf_cache_mode_get_name(ocf_cache_mode_t cache_mode)
19461947}
19471948
19481949int ocf_mngt_cache_start (ocf_ctx_t ctx , ocf_cache_t * cache ,
1949- struct ocf_mngt_cache_config * cfg )
1950+ struct ocf_mngt_cache_config * cfg , void * priv )
19501951{
19511952 int result ;
19521953
@@ -1957,7 +1958,7 @@ int ocf_mngt_cache_start(ocf_ctx_t ctx, ocf_cache_t *cache,
19571958 if (result )
19581959 return result ;
19591960
1960- result = _ocf_mngt_cache_start (ctx , cache , cfg );
1961+ result = _ocf_mngt_cache_start (ctx , cache , cfg , priv );
19611962 if (!result ) {
19621963 _ocf_mngt_cache_set_valid (* cache );
19631964
0 commit comments