@@ -1179,7 +1179,7 @@ static void _ocf_mngt_cache_init(ocf_cache_t cache,
1179
1179
}
1180
1180
1181
1181
static 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 )
1183
1183
{
1184
1184
struct ocf_cache_mngt_init_params params ;
1185
1185
ocf_cache_t tmp_cache ;
@@ -1208,6 +1208,7 @@ static int _ocf_mngt_cache_start(ocf_ctx_t ctx, ocf_cache_t *cache,
1208
1208
1209
1209
tmp_cache = params .cache ;
1210
1210
tmp_cache -> owner = ctx ;
1211
+ tmp_cache -> priv = priv ;
1211
1212
1212
1213
/*
1213
1214
* 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)
1946
1947
}
1947
1948
1948
1949
int 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 )
1950
1951
{
1951
1952
int result ;
1952
1953
@@ -1957,7 +1958,7 @@ int ocf_mngt_cache_start(ocf_ctx_t ctx, ocf_cache_t *cache,
1957
1958
if (result )
1958
1959
return result ;
1959
1960
1960
- result = _ocf_mngt_cache_start (ctx , cache , cfg );
1961
+ result = _ocf_mngt_cache_start (ctx , cache , cfg , priv );
1961
1962
if (!result ) {
1962
1963
_ocf_mngt_cache_set_valid (* cache );
1963
1964
0 commit comments