Lines Matching refs:cres

26 #define fscache_resources_valid(cres) ((cres)->cache_priv)  argument
33 #define fscache_resources_valid(cres) (false) argument
426 const struct netfs_cache_ops *fscache_operation_valid(const struct netfs_cache_resources *cres) in fscache_operation_valid() argument
428 return fscache_resources_valid(cres) ? cres->ops : NULL; in fscache_operation_valid()
453 int fscache_begin_read_operation(struct netfs_cache_resources *cres, in fscache_begin_read_operation() argument
457 return __fscache_begin_read_operation(cres, cookie); in fscache_begin_read_operation()
467 static inline void fscache_end_operation(struct netfs_cache_resources *cres) in fscache_end_operation() argument
469 const struct netfs_cache_ops *ops = fscache_operation_valid(cres); in fscache_end_operation()
472 ops->end_operation(cres); in fscache_end_operation()
507 int fscache_read(struct netfs_cache_resources *cres, in fscache_read() argument
514 const struct netfs_cache_ops *ops = fscache_operation_valid(cres); in fscache_read()
515 return ops->read(cres, start_pos, iter, read_hole, in fscache_read()
538 int fscache_begin_write_operation(struct netfs_cache_resources *cres, in fscache_begin_write_operation() argument
542 return __fscache_begin_write_operation(cres, cookie); in fscache_begin_write_operation()
566 int fscache_write(struct netfs_cache_resources *cres, in fscache_write() argument
572 const struct netfs_cache_ops *ops = fscache_operation_valid(cres); in fscache_write()
573 return ops->write(cres, start_pos, iter, term_func, term_func_priv); in fscache_write()