• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/fscache/

Lines Matching defs:op

148 static void fscache_attr_changed_op(struct fscache_operation *op)
150 struct fscache_object *object = op->object;
153 _enter("{OBJ%x OP%x}", object->debug_id, op->debug_id);
158 fscache_set_op_state(op, "CallFS");
162 fscache_set_op_state(op, "Done");
175 struct fscache_operation *op;
184 op = kzalloc(sizeof(*op), GFP_KERNEL);
185 if (!op) {
191 fscache_operation_init(op, fscache_attr_changed_op, NULL);
192 op->flags = FSCACHE_OP_ASYNC | (1 << FSCACHE_OP_EXCLUSIVE);
193 fscache_set_op_name(op, "Attr");
202 if (fscache_submit_exclusive_op(object, op) < 0)
206 fscache_put_operation(op);
212 kfree(op);
220 * release a retrieval op reference
224 struct fscache_retrieval *op =
225 container_of(_op, struct fscache_retrieval, op);
227 _enter("{OP%x}", op->op.debug_id);
229 fscache_hist(fscache_retrieval_histogram, op->start_time);
230 if (op->context)
231 fscache_put_context(op->op.object->cookie, op->context);
237 * allocate a retrieval op
244 struct fscache_retrieval *op;
247 op = kzalloc(sizeof(*op), GFP_NOIO);
248 if (!op) {
253 fscache_operation_init(&op->op, NULL, fscache_release_retrieval_op);
254 op->op.flags = FSCACHE_OP_MYTHREAD | (1 << FSCACHE_OP_WAITING);
255 op->mapping = mapping;
256 op->end_io_func = end_io_func;
257 op->context = context;
258 op->start_time = jiffies;
259 INIT_LIST_HEAD(&op->to_do);
260 fscache_set_op_name(&op->op, "Retr");
261 return op;
301 struct fscache_retrieval *op,
307 if (!test_bit(FSCACHE_OP_WAITING, &op->op.flags))
312 if (wait_on_bit(&op->op.flags, FSCACHE_OP_WAITING,
315 ret = fscache_cancel_op(&op->op);
321 wait_on_bit(&op->op.flags, FSCACHE_OP_WAITING,
349 struct fscache_retrieval *op;
366 op = fscache_alloc_retrieval(page->mapping, end_io_func, context);
367 if (!op) {
371 fscache_set_op_name(&op->op, "RetrRA1");
383 set_bit(FSCACHE_OP_DEC_READ_CNT, &op->op.flags);
385 if (fscache_submit_op(object, &op->op) < 0)
393 fscache_get_context(object->cookie, op->context);
398 object, op,
407 ret = object->cache->ops->allocate_page(op, page, gfp);
413 ret = object->cache->ops->read_or_alloc_page(op, page, gfp);
429 fscache_put_retrieval(op);
435 kfree(op);
469 struct fscache_retrieval *op;
487 op = fscache_alloc_retrieval(mapping, end_io_func, context);
488 if (!op)
490 fscache_set_op_name(&op->op, "RetrRAN");
500 set_bit(FSCACHE_OP_DEC_READ_CNT, &op->op.flags);
502 if (fscache_submit_op(object, &op->op) < 0)
510 fscache_get_context(object->cookie, op->context);
515 object, op,
525 op, pages, nr_pages, gfp);
530 op, pages, nr_pages, gfp);
546 fscache_put_retrieval(op);
552 kfree(op);
572 struct fscache_retrieval *op;
589 op = fscache_alloc_retrieval(page->mapping, NULL, NULL);
590 if (!op)
592 fscache_set_op_name(&op->op, "RetrAL1");
601 if (fscache_submit_op(object, &op->op) < 0)
608 object, op,
616 ret = object->cache->ops->allocate_page(op, page, gfp);
627 fscache_put_retrieval(op);
633 kfree(op);
642 * release a write op reference
654 struct fscache_storage *op =
655 container_of(_op, struct fscache_storage, op);
656 struct fscache_object *object = op->op.object;
663 _enter("{OP%x,%d}", op->op.debug_id, atomic_read(&op->op.usage));
665 fscache_set_op_state(&op->op, "GetPage");
688 if (page->index > op->store_limit) {
701 fscache_set_op_state(&op->op, "Store");
704 ret = object->cache->ops->write_page(op, page);
706 fscache_set_op_state(&op->op, "EndWrite");
709 fscache_set_op_state(&op->op, "Abort");
712 fscache_enqueue_operation(&op->op);
742 * fill op)
753 * (b) fill point passed this page (queue op to store this page)
755 * (3) object extant (queue op to store this page)
763 struct fscache_storage *op;
774 op = kzalloc(sizeof(*op), GFP_NOIO);
775 if (!op)
778 fscache_operation_init(&op->op, fscache_write_op,
780 op->op.flags = FSCACHE_OP_ASYNC | (1 << FSCACHE_OP_WAITING);
781 fscache_set_op_name(&op->op, "Write1");
824 op->op.debug_id = atomic_inc_return(&fscache_op_debug_id);
825 op->store_limit = object->store_limit;
827 if (fscache_submit_op(object, &op->op) < 0)
836 fscache_put_operation(&op->op);
847 kfree(op);
866 kfree(op);
872 kfree(op);
932 * @op: The retrieval op pages are being marked for
938 void fscache_mark_pages_cached(struct fscache_retrieval *op,
941 struct fscache_cookie *cookie = op->op.object->cookie;
966 op->mapping, pagevec);