Lines Matching refs:wreq
236 struct fscache_write_request *wreq = priv; in fscache_wreq_done() local
238 fscache_clear_page_bits(wreq->mapping, wreq->start, wreq->len, in fscache_wreq_done()
239 wreq->set_bits); in fscache_wreq_done()
241 if (wreq->term_func) in fscache_wreq_done()
242 wreq->term_func(wreq->term_func_priv, transferred_or_error, in fscache_wreq_done()
244 fscache_end_operation(&wreq->cache_resources); in fscache_wreq_done()
245 kfree(wreq); in fscache_wreq_done()
255 struct fscache_write_request *wreq; in __fscache_write_to_cache() local
265 wreq = kzalloc(sizeof(struct fscache_write_request), GFP_NOFS); in __fscache_write_to_cache()
266 if (!wreq) in __fscache_write_to_cache()
268 wreq->mapping = mapping; in __fscache_write_to_cache()
269 wreq->start = start; in __fscache_write_to_cache()
270 wreq->len = len; in __fscache_write_to_cache()
271 wreq->set_bits = cond; in __fscache_write_to_cache()
272 wreq->term_func = term_func; in __fscache_write_to_cache()
273 wreq->term_func_priv = term_func_priv; in __fscache_write_to_cache()
275 cres = &wreq->cache_resources; in __fscache_write_to_cache()
290 fscache_write(cres, start, &iter, fscache_wreq_done, wreq); in __fscache_write_to_cache()
294 return fscache_wreq_done(wreq, ret, false); in __fscache_write_to_cache()
296 kfree(wreq); in __fscache_write_to_cache()