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()
67 fscache_enqueue_retrieval(op); in cachefiles_read_waiter()
70 fscache_put_retrieval(op); in cachefiles_read_waiter()
161 struct fscache_retrieval *op; in cachefiles_read_copier() local
164 op = container_of(_op, struct fscache_retrieval, op); in cachefiles_read_copier()
165 object = container_of(op->op.object, in cachefiles_read_copier()
173 while (!list_empty(&op->to_do)) { in cachefiles_read_copier()
174 monitor = list_entry(op->to_do.next, in cachefiles_read_copier()
188 fscache_mark_page_cached(monitor->op, in cachefiles_read_copier()
207 fscache_end_io(op, monitor->netfs_page, error); in cachefiles_read_copier()
209 fscache_retrieval_complete(op, 1); in cachefiles_read_copier()
210 fscache_put_retrieval(op); in cachefiles_read_copier()
217 if (!list_empty(&op->to_do)) in cachefiles_read_copier()
218 fscache_enqueue_retrieval(op); in cachefiles_read_copier()
235 struct fscache_retrieval *op, in cachefiles_read_backing_file_one() argument
253 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()
535 ret = add_to_page_cache_lru(netpage, op->mapping, in cachefiles_read_backing_file()
543 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
611 ret = add_to_page_cache_lru(netpage, op->mapping, in cachefiles_read_backing_file()
619 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
630 fscache_mark_page_cached(op, netpage); in cachefiles_read_backing_file()
633 fscache_end_io(op, netpage, 0); in cachefiles_read_backing_file()
636 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
653 fscache_put_retrieval(op); in cachefiles_read_backing_file()
660 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
679 fscache_retrieval_complete(op, 1); in cachefiles_read_backing_file()
687 int cachefiles_read_or_alloc_pages(struct fscache_retrieval *op, in cachefiles_read_or_alloc_pages() argument
701 object = container_of(op->op.object, in cachefiles_read_or_alloc_pages()
707 object->fscache.debug_id, atomic_read(&op->op.usage), in cachefiles_read_or_alloc_pages()
727 op->op.flags &= FSCACHE_OP_KEEP_FLAGS; in cachefiles_read_or_alloc_pages()
728 op->op.flags |= FSCACHE_OP_ASYNC; in cachefiles_read_or_alloc_pages()
729 op->op.processor = cachefiles_read_copier; in cachefiles_read_or_alloc_pages()
760 fscache_mark_pages_cached(op, &pagevec); in cachefiles_read_or_alloc_pages()
761 fscache_retrieval_complete(op, 1); in cachefiles_read_or_alloc_pages()
764 fscache_retrieval_complete(op, 1); in cachefiles_read_or_alloc_pages()
769 fscache_mark_pages_cached(op, &pagevec); in cachefiles_read_or_alloc_pages()
777 ret2 = cachefiles_read_backing_file(object, op, &backpages); in cachefiles_read_or_alloc_pages()
787 fscache_retrieval_complete(op, *nr_pages); in cachefiles_read_or_alloc_pages()
802 int cachefiles_allocate_page(struct fscache_retrieval *op, in cachefiles_allocate_page() argument
810 object = container_of(op->op.object, in cachefiles_allocate_page()
819 fscache_mark_page_cached(op, page); in cachefiles_allocate_page()
823 fscache_retrieval_complete(op, 1); in cachefiles_allocate_page()
839 int cachefiles_allocate_pages(struct fscache_retrieval *op, in cachefiles_allocate_pages() argument
850 object = container_of(op->op.object, in cachefiles_allocate_pages()
863 fscache_mark_pages_cached(op, &pagevec); in cachefiles_allocate_pages()
867 fscache_mark_pages_cached(op, &pagevec); in cachefiles_allocate_pages()
873 fscache_retrieval_complete(op, *nr_pages); in cachefiles_allocate_pages()
885 int cachefiles_write_page(struct fscache_storage *op, struct page *page) in cachefiles_write_page() argument
896 ASSERT(op != NULL); in cachefiles_write_page()
899 object = container_of(op->op.object, in cachefiles_write_page()