Lines Matching refs:op
30 struct fscache_retrieval *op = monitor->op; in cachefiles_read_waiter() local
55 ASSERT(op); in cachefiles_read_waiter()
62 fscache_get_retrieval(op); in cachefiles_read_waiter()
64 object = container_of(op->op.object, struct cachefiles_object, fscache); in cachefiles_read_waiter()
66 list_add_tail(&monitor->op_link, &op->to_do); in cachefiles_read_waiter()
69 fscache_enqueue_retrieval(op); in cachefiles_read_waiter()
70 fscache_put_retrieval(op); in cachefiles_read_waiter()
160 struct fscache_retrieval *op; in cachefiles_read_copier() local
163 op = container_of(_op, struct fscache_retrieval, op); in cachefiles_read_copier()
164 object = container_of(op->op.object, in cachefiles_read_copier()
172 while (!list_empty(&op->to_do)) { in cachefiles_read_copier()
173 monitor = list_entry(op->to_do.next, in cachefiles_read_copier()
187 fscache_mark_page_cached(monitor->op, in cachefiles_read_copier()
206 fscache_end_io(op, monitor->netfs_page, error); in cachefiles_read_copier()
208 fscache_retrieval_complete(op, 1); in cachefiles_read_copier()
209 fscache_put_retrieval(op); in cachefiles_read_copier()
216 if (!list_empty(&op->to_do)) in cachefiles_read_copier()
217 fscache_enqueue_retrieval(op); in cachefiles_read_copier()
234 struct fscache_retrieval *op, in cachefiles_read_backing_file_one() argument
252 monitor->op = fscache_get_retrieval(op); in cachefiles_read_backing_file_one()
340 fscache_mark_page_cached(op, netpage); in cachefiles_read_backing_file_one()
343 fscache_end_io(op, netpage, 0); in cachefiles_read_backing_file_one()
344 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file_one()
354 fscache_put_retrieval(monitor->op); in cachefiles_read_backing_file_one()
363 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file_one()
368 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file_one()
375 fscache_put_retrieval(monitor->op); in cachefiles_read_backing_file_one()
378 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file_one()
397 int cachefiles_read_or_alloc_page(struct fscache_retrieval *op, in cachefiles_read_or_alloc_page() argument
408 object = container_of(op->op.object, in cachefiles_read_or_alloc_page()
426 op->op.flags &= FSCACHE_OP_KEEP_FLAGS; in cachefiles_read_or_alloc_page()
427 op->op.flags |= FSCACHE_OP_ASYNC; in cachefiles_read_or_alloc_page()
428 op->op.processor = cachefiles_read_copier; in cachefiles_read_or_alloc_page()
447 ret = cachefiles_read_backing_file_one(object, op, page); in cachefiles_read_or_alloc_page()
450 fscache_mark_page_cached(op, page); in cachefiles_read_or_alloc_page()
451 fscache_retrieval_complete(op, 1); in cachefiles_read_or_alloc_page()
461 fscache_retrieval_complete(op, 1); in cachefiles_read_or_alloc_page()
471 struct fscache_retrieval *op, in cachefiles_read_backing_file() argument
492 monitor->op = fscache_get_retrieval(op); in cachefiles_read_backing_file()
536 ret = add_to_page_cache_lru(netpage, op->mapping, in cachefiles_read_backing_file()
544 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
612 ret = add_to_page_cache_lru(netpage, op->mapping, in cachefiles_read_backing_file()
620 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
631 fscache_mark_page_cached(op, netpage); in cachefiles_read_backing_file()
634 fscache_end_io(op, netpage, 0); in cachefiles_read_backing_file()
637 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
654 fscache_put_retrieval(op); in cachefiles_read_backing_file()
661 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
680 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
688 int cachefiles_read_or_alloc_pages(struct fscache_retrieval *op, in cachefiles_read_or_alloc_pages() argument
702 object = container_of(op->op.object, in cachefiles_read_or_alloc_pages()
708 object->fscache.debug_id, atomic_read(&op->op.usage), in cachefiles_read_or_alloc_pages()
728 op->op.flags &= FSCACHE_OP_KEEP_FLAGS; in cachefiles_read_or_alloc_pages()
729 op->op.flags |= FSCACHE_OP_ASYNC; in cachefiles_read_or_alloc_pages()
730 op->op.processor = cachefiles_read_copier; in cachefiles_read_or_alloc_pages()
761 fscache_mark_pages_cached(op, &pagevec); in cachefiles_read_or_alloc_pages()
762 fscache_retrieval_complete(op, 1); in cachefiles_read_or_alloc_pages()
765 fscache_retrieval_complete(op, 1); in cachefiles_read_or_alloc_pages()
770 fscache_mark_pages_cached(op, &pagevec); in cachefiles_read_or_alloc_pages()
778 ret2 = cachefiles_read_backing_file(object, op, &backpages); in cachefiles_read_or_alloc_pages()
788 fscache_retrieval_complete(op, *nr_pages); in cachefiles_read_or_alloc_pages()
803 int cachefiles_allocate_page(struct fscache_retrieval *op, in cachefiles_allocate_page() argument
811 object = container_of(op->op.object, in cachefiles_allocate_page()
820 fscache_mark_page_cached(op, page); in cachefiles_allocate_page()
824 fscache_retrieval_complete(op, 1); in cachefiles_allocate_page()
840 int cachefiles_allocate_pages(struct fscache_retrieval *op, in cachefiles_allocate_pages() argument
851 object = container_of(op->op.object, in cachefiles_allocate_pages()
864 fscache_mark_pages_cached(op, &pagevec); in cachefiles_allocate_pages()
868 fscache_mark_pages_cached(op, &pagevec); in cachefiles_allocate_pages()
874 fscache_retrieval_complete(op, *nr_pages); in cachefiles_allocate_pages()
886 int cachefiles_write_page(struct fscache_storage *op, struct page *page) in cachefiles_write_page() argument
897 ASSERT(op != NULL); in cachefiles_write_page()
900 object = container_of(op->op.object, in cachefiles_write_page()