Lines Matching refs:op

75 typedef void (*fscache_operation_release_t)(struct fscache_operation *op);
76 typedef void (*fscache_operation_processor_t)(struct fscache_operation *op);
131 static inline void fscache_operation_init(struct fscache_operation *op, in fscache_operation_init() argument
135 INIT_WORK(&op->work, fscache_op_work_func); in fscache_operation_init()
136 atomic_set(&op->usage, 1); in fscache_operation_init()
137 op->state = FSCACHE_OP_ST_INITIALISED; in fscache_operation_init()
138 op->debug_id = atomic_inc_return(&fscache_op_debug_id); in fscache_operation_init()
139 op->processor = processor; in fscache_operation_init()
140 op->release = release; in fscache_operation_init()
141 INIT_LIST_HEAD(&op->pend_link); in fscache_operation_init()
148 struct fscache_operation op; member
157 typedef int (*fscache_page_retrieval_func_t)(struct fscache_retrieval *op,
161 typedef int (*fscache_pages_retrieval_func_t)(struct fscache_retrieval *op,
173 struct fscache_retrieval *fscache_get_retrieval(struct fscache_retrieval *op) in fscache_get_retrieval() argument
175 atomic_inc(&op->op.usage); in fscache_get_retrieval()
176 return op; in fscache_get_retrieval()
185 static inline void fscache_enqueue_retrieval(struct fscache_retrieval *op) in fscache_enqueue_retrieval() argument
187 fscache_enqueue_operation(&op->op); in fscache_enqueue_retrieval()
195 static inline void fscache_retrieval_complete(struct fscache_retrieval *op, in fscache_retrieval_complete() argument
198 atomic_sub(n_pages, &op->n_pages); in fscache_retrieval_complete()
199 if (atomic_read(&op->n_pages) <= 0) in fscache_retrieval_complete()
200 fscache_op_complete(&op->op, true); in fscache_retrieval_complete()
209 static inline void fscache_put_retrieval(struct fscache_retrieval *op) in fscache_put_retrieval() argument
211 fscache_put_operation(&op->op); in fscache_put_retrieval()
222 struct fscache_operation op; member
256 bool (*check_consistency)(struct fscache_operation *op);
262 void (*invalidate_object)(struct fscache_operation *op);
298 int (*write_page)(struct fscache_storage *op, struct page *page);
479 static inline void fscache_end_io(struct fscache_retrieval *op, in fscache_end_io() argument
482 op->end_io_func(page, op->context, error); in fscache_end_io()
542 extern void fscache_mark_page_cached(struct fscache_retrieval *op,
545 extern void fscache_mark_pages_cached(struct fscache_retrieval *op,