Lines Matching refs:cres

23 bool fscache_wait_for_operation(struct netfs_cache_resources *cres,  in fscache_wait_for_operation()  argument
26 struct fscache_cookie *cookie = fscache_cres_cookie(cres); in fscache_wait_for_operation()
60 if (!cres->cache_priv2) in fscache_wait_for_operation()
61 return cookie->volume->cache->ops->begin_operation(cres, want_state); in fscache_wait_for_operation()
71 static int fscache_begin_operation(struct netfs_cache_resources *cres, in fscache_begin_operation() argument
80 cres->ops = NULL; in fscache_begin_operation()
81 cres->cache_priv = cookie; in fscache_begin_operation()
82 cres->cache_priv2 = NULL; in fscache_begin_operation()
83 cres->debug_id = cookie->debug_id; in fscache_begin_operation()
84 cres->inval_counter = cookie->inval_counter; in fscache_begin_operation()
116 if (!cookie->volume->cache->ops->begin_operation(cres, want_state)) in fscache_begin_operation()
138 cres->cache_priv = NULL; in fscache_begin_operation()
139 cres->ops = NULL; in fscache_begin_operation()
145 int __fscache_begin_read_operation(struct netfs_cache_resources *cres, in __fscache_begin_read_operation() argument
148 return fscache_begin_operation(cres, cookie, FSCACHE_WANT_PARAMS, in __fscache_begin_read_operation()
153 int __fscache_begin_write_operation(struct netfs_cache_resources *cres, in __fscache_begin_write_operation() argument
156 return fscache_begin_operation(cres, cookie, FSCACHE_WANT_PARAMS, in __fscache_begin_write_operation()
256 struct netfs_cache_resources *cres; in __fscache_write_to_cache() local
275 cres = &wreq->cache_resources; in __fscache_write_to_cache()
276 if (fscache_begin_operation(cres, cookie, FSCACHE_WANT_WRITE, in __fscache_write_to_cache()
280 ret = cres->ops->prepare_write(cres, &start, &len, i_size, false); in __fscache_write_to_cache()
290 fscache_write(cres, start, &iter, fscache_wreq_done, wreq); in __fscache_write_to_cache()
309 struct netfs_cache_resources cres; in __fscache_resize_cookie() local
312 if (fscache_begin_operation(&cres, cookie, FSCACHE_WANT_WRITE, in __fscache_resize_cookie()
321 cookie->volume->cache->ops->resize_cookie(&cres, new_size); in __fscache_resize_cookie()
322 fscache_end_operation(&cres); in __fscache_resize_cookie()