Lines Matching refs:object

29 	struct cachefiles_object *object;  in cachefiles_read_waiter()  local
64 object = container_of(op->op.object, struct cachefiles_object, fscache); in cachefiles_read_waiter()
65 spin_lock(&object->work_lock); in cachefiles_read_waiter()
67 spin_unlock(&object->work_lock); in cachefiles_read_waiter()
81 static int cachefiles_read_reissue(struct cachefiles_object *object, in cachefiles_read_reissue() argument
84 struct address_space *bmapping = d_backing_inode(object->backer)->i_mapping; in cachefiles_read_reissue()
89 d_backing_inode(object->backer)->i_ino, in cachefiles_read_reissue()
145 spin_lock_irq(&object->work_lock); in cachefiles_read_reissue()
147 spin_unlock_irq(&object->work_lock); in cachefiles_read_reissue()
159 struct cachefiles_object *object; in cachefiles_read_copier() local
164 object = container_of(op->op.object, in cachefiles_read_copier()
167 _enter("{ino=%lu}", d_backing_inode(object->backer)->i_ino); in cachefiles_read_copier()
170 spin_lock_irq(&object->work_lock); in cachefiles_read_copier()
177 spin_unlock_irq(&object->work_lock); in cachefiles_read_copier()
183 &object->fscache.cookie->flags)) { in cachefiles_read_copier()
192 error = cachefiles_read_reissue(object, monitor); in cachefiles_read_copier()
198 object, in cachefiles_read_copier()
222 spin_lock_irq(&object->work_lock); in cachefiles_read_copier()
225 spin_unlock_irq(&object->work_lock); in cachefiles_read_copier()
233 static int cachefiles_read_backing_file_one(struct cachefiles_object *object, in cachefiles_read_backing_file_one() argument
257 bmapping = d_backing_inode(object->backer)->i_mapping; in cachefiles_read_backing_file_one()
366 cachefiles_io_error_obj(object, "Page read error on backing file"); in cachefiles_read_backing_file_one()
400 struct cachefiles_object *object; in cachefiles_read_or_alloc_page() local
407 object = container_of(op->op.object, in cachefiles_read_or_alloc_page()
409 cache = container_of(object->fscache.cache, in cachefiles_read_or_alloc_page()
412 _enter("{%p},{%lx},,,", object, page->index); in cachefiles_read_or_alloc_page()
414 if (!object->backer) in cachefiles_read_or_alloc_page()
417 inode = d_backing_inode(object->backer); in cachefiles_read_or_alloc_page()
446 ret = cachefiles_read_backing_file_one(object, op, page); in cachefiles_read_or_alloc_page()
469 static int cachefiles_read_backing_file(struct cachefiles_object *object, in cachefiles_read_backing_file() argument
474 struct address_space *bmapping = d_backing_inode(object->backer)->i_mapping; in cachefiles_read_backing_file()
669 cachefiles_io_error_obj(object, "Page read error on backing file"); in cachefiles_read_backing_file()
685 struct cachefiles_object *object; in cachefiles_read_or_alloc_pages() local
694 object = container_of(op->op.object, in cachefiles_read_or_alloc_pages()
696 cache = container_of(object->fscache.cache, in cachefiles_read_or_alloc_pages()
700 object->fscache.debug_id, atomic_read(&op->op.usage), in cachefiles_read_or_alloc_pages()
703 if (!object->backer) in cachefiles_read_or_alloc_pages()
710 inode = d_backing_inode(object->backer); in cachefiles_read_or_alloc_pages()
770 ret2 = cachefiles_read_backing_file(object, op, &backpages); in cachefiles_read_or_alloc_pages()
799 struct cachefiles_object *object; in cachefiles_allocate_page() local
803 object = container_of(op->op.object, in cachefiles_allocate_page()
805 cache = container_of(object->fscache.cache, in cachefiles_allocate_page()
808 _enter("%p,{%lx},", object, page->index); in cachefiles_allocate_page()
837 struct cachefiles_object *object; in cachefiles_allocate_pages() local
843 object = container_of(op->op.object, in cachefiles_allocate_pages()
845 cache = container_of(object->fscache.cache, in cachefiles_allocate_pages()
848 _enter("%p,,,%d,", object, *nr_pages); in cachefiles_allocate_pages()
880 struct cachefiles_object *object; in cachefiles_write_page() local
892 object = container_of(op->op.object, in cachefiles_write_page()
895 _enter("%p,%p{%lx},,,", object, page, page->index); in cachefiles_write_page()
897 if (!object->backer) { in cachefiles_write_page()
902 ASSERT(d_is_reg(object->backer)); in cachefiles_write_page()
904 cache = container_of(object->fscache.cache, in cachefiles_write_page()
912 eof = object->fscache.store_limit_l; in cachefiles_write_page()
919 path.dentry = object->backer; in cachefiles_write_page()
950 cachefiles_io_error_obj(object, in cachefiles_write_page()
962 __releases(&object->fscache.cookie->lock) in cachefiles_uncache_page()
964 struct cachefiles_object *object; in cachefiles_uncache_page() local
967 object = container_of(_object, struct cachefiles_object, fscache); in cachefiles_uncache_page()
968 cache = container_of(object->fscache.cache, in cachefiles_uncache_page()
971 _enter("%p,{%lu}", object, page->index); in cachefiles_uncache_page()
973 spin_unlock(&object->fscache.cookie->lock); in cachefiles_uncache_page()