Lines Matching refs:op

54 	ASSERT(monitor->op);  in cachefiles_read_waiter()
56 object = container_of(monitor->op->op.object, in cachefiles_read_waiter()
60 list_add_tail(&monitor->op_link, &monitor->op->to_do); in cachefiles_read_waiter()
63 fscache_enqueue_retrieval(monitor->op); in cachefiles_read_waiter()
153 struct fscache_retrieval *op; in cachefiles_read_copier() local
156 op = container_of(_op, struct fscache_retrieval, op); in cachefiles_read_copier()
157 object = container_of(op->op.object, in cachefiles_read_copier()
165 while (!list_empty(&op->to_do)) { in cachefiles_read_copier()
166 monitor = list_entry(op->to_do.next, in cachefiles_read_copier()
180 fscache_mark_page_cached(monitor->op, in cachefiles_read_copier()
199 fscache_end_io(op, monitor->netfs_page, error); in cachefiles_read_copier()
201 fscache_retrieval_complete(op, 1); in cachefiles_read_copier()
202 fscache_put_retrieval(op); in cachefiles_read_copier()
209 if (!list_empty(&op->to_do)) in cachefiles_read_copier()
210 fscache_enqueue_retrieval(op); in cachefiles_read_copier()
227 struct fscache_retrieval *op, in cachefiles_read_backing_file_one() argument
245 monitor->op = fscache_get_retrieval(op); in cachefiles_read_backing_file_one()
333 fscache_mark_page_cached(op, netpage); in cachefiles_read_backing_file_one()
336 fscache_end_io(op, netpage, 0); in cachefiles_read_backing_file_one()
337 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file_one()
347 fscache_put_retrieval(monitor->op); in cachefiles_read_backing_file_one()
356 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file_one()
361 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file_one()
368 fscache_put_retrieval(monitor->op); in cachefiles_read_backing_file_one()
371 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file_one()
390 int cachefiles_read_or_alloc_page(struct fscache_retrieval *op, in cachefiles_read_or_alloc_page() argument
401 object = container_of(op->op.object, in cachefiles_read_or_alloc_page()
422 op->op.flags &= FSCACHE_OP_KEEP_FLAGS; in cachefiles_read_or_alloc_page()
423 op->op.flags |= FSCACHE_OP_ASYNC; in cachefiles_read_or_alloc_page()
424 op->op.processor = cachefiles_read_copier; in cachefiles_read_or_alloc_page()
443 ret = cachefiles_read_backing_file_one(object, op, page); in cachefiles_read_or_alloc_page()
446 fscache_mark_page_cached(op, page); in cachefiles_read_or_alloc_page()
447 fscache_retrieval_complete(op, 1); in cachefiles_read_or_alloc_page()
457 fscache_retrieval_complete(op, 1); in cachefiles_read_or_alloc_page()
467 struct fscache_retrieval *op, in cachefiles_read_backing_file() argument
488 monitor->op = fscache_get_retrieval(op); in cachefiles_read_backing_file()
532 ret = add_to_page_cache_lru(netpage, op->mapping, in cachefiles_read_backing_file()
537 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
605 ret = add_to_page_cache_lru(netpage, op->mapping, in cachefiles_read_backing_file()
610 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
621 fscache_mark_page_cached(op, netpage); in cachefiles_read_backing_file()
624 fscache_end_io(op, netpage, 0); in cachefiles_read_backing_file()
627 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
644 fscache_put_retrieval(op); in cachefiles_read_backing_file()
651 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
670 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
678 int cachefiles_read_or_alloc_pages(struct fscache_retrieval *op, in cachefiles_read_or_alloc_pages() argument
692 object = container_of(op->op.object, in cachefiles_read_or_alloc_pages()
698 object->fscache.debug_id, atomic_read(&op->op.usage), in cachefiles_read_or_alloc_pages()
721 op->op.flags &= FSCACHE_OP_KEEP_FLAGS; in cachefiles_read_or_alloc_pages()
722 op->op.flags |= FSCACHE_OP_ASYNC; in cachefiles_read_or_alloc_pages()
723 op->op.processor = cachefiles_read_copier; in cachefiles_read_or_alloc_pages()
754 fscache_mark_pages_cached(op, &pagevec); in cachefiles_read_or_alloc_pages()
755 fscache_retrieval_complete(op, 1); in cachefiles_read_or_alloc_pages()
758 fscache_retrieval_complete(op, 1); in cachefiles_read_or_alloc_pages()
763 fscache_mark_pages_cached(op, &pagevec); in cachefiles_read_or_alloc_pages()
771 ret2 = cachefiles_read_backing_file(object, op, &backpages); in cachefiles_read_or_alloc_pages()
781 fscache_retrieval_complete(op, *nr_pages); in cachefiles_read_or_alloc_pages()
796 int cachefiles_allocate_page(struct fscache_retrieval *op, in cachefiles_allocate_page() argument
804 object = container_of(op->op.object, in cachefiles_allocate_page()
813 fscache_mark_page_cached(op, page); in cachefiles_allocate_page()
817 fscache_retrieval_complete(op, 1); in cachefiles_allocate_page()
833 int cachefiles_allocate_pages(struct fscache_retrieval *op, in cachefiles_allocate_pages() argument
844 object = container_of(op->op.object, in cachefiles_allocate_pages()
857 fscache_mark_pages_cached(op, &pagevec); in cachefiles_allocate_pages()
861 fscache_mark_pages_cached(op, &pagevec); in cachefiles_allocate_pages()
867 fscache_retrieval_complete(op, *nr_pages); in cachefiles_allocate_pages()
879 int cachefiles_write_page(struct fscache_storage *op, struct page *page) in cachefiles_write_page() argument
890 ASSERT(op != NULL); in cachefiles_write_page()
893 object = container_of(op->op.object, in cachefiles_write_page()