Lines Matching full:object
10 struct cachefiles_object *object = file->private_data; in cachefiles_ondemand_fd_release() local
11 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_release()
12 int object_id = object->ondemand_id; in cachefiles_ondemand_fd_release()
17 object->ondemand_id = CACHEFILES_ONDEMAND_ID_CLOSED; in cachefiles_ondemand_fd_release()
34 trace_cachefiles_ondemand_fd_release(object, object_id); in cachefiles_ondemand_fd_release()
35 cachefiles_put_object(object, cachefiles_obj_put_ondemand_fd); in cachefiles_ondemand_fd_release()
43 struct cachefiles_object *object = kiocb->ki_filp->private_data; in cachefiles_ondemand_fd_write_iter() local
44 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_write_iter()
45 struct file *file = object->file; in cachefiles_ondemand_fd_write_iter()
55 ret = __cachefiles_prepare_write(object, file, &pos, &len, true); in cachefiles_ondemand_fd_write_iter()
60 trace_cachefiles_ondemand_fd_write(object, file_inode(file), pos, len); in cachefiles_ondemand_fd_write_iter()
61 ret = __cachefiles_write(object, file, pos, iter, NULL, NULL); in cachefiles_ondemand_fd_write_iter()
71 struct cachefiles_object *object = filp->private_data; in cachefiles_ondemand_fd_llseek() local
72 struct file *file = object->file; in cachefiles_ondemand_fd_llseek()
83 struct cachefiles_object *object = filp->private_data; in cachefiles_ondemand_fd_ioctl() local
84 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_fd_ioctl()
99 trace_cachefiles_ondemand_cread(object, id); in cachefiles_ondemand_fd_ioctl()
115 * <cache_size> indicates the object size if >=0, error code if negative
171 cookie = req->object->cookie; in cachefiles_ondemand_copen()
177 trace_cachefiles_ondemand_copen(req->object, id, size); in cachefiles_ondemand_copen()
186 struct cachefiles_object *object; in cachefiles_ondemand_get_fd() local
193 object = cachefiles_grab_object(req->object, in cachefiles_ondemand_get_fd()
195 cache = object->volume->cache; in cachefiles_ondemand_get_fd()
210 object, O_WRONLY); in cachefiles_ondemand_get_fd()
222 object->ondemand_id = object_id; in cachefiles_ondemand_get_fd()
225 trace_cachefiles_ondemand_open(object, &req->msg, load); in cachefiles_ondemand_get_fd()
233 cachefiles_put_object(object, cachefiles_obj_put_ondemand_fd); in cachefiles_ondemand_get_fd()
309 static int cachefiles_ondemand_send_req(struct cachefiles_object *object, in cachefiles_ondemand_send_req() argument
315 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_ondemand_send_req()
330 req->object = object; in cachefiles_ondemand_send_req()
366 if (opcode != CACHEFILES_OP_OPEN && object->ondemand_id <= 0) { in cachefiles_ondemand_send_req()
367 WARN_ON_ONCE(object->ondemand_id == 0); in cachefiles_ondemand_send_req()
398 struct cachefiles_object *object = req->object; in cachefiles_ondemand_init_open_req() local
399 struct fscache_cookie *cookie = object->cookie; in cachefiles_ondemand_init_open_req()
400 struct fscache_volume *volume = object->volume->vcookie; in cachefiles_ondemand_init_open_req()
416 if (!(object->cookie->advice & FSCACHE_ADV_WANT_CACHE_SIZE)) { in cachefiles_ondemand_init_open_req()
432 struct cachefiles_object *object = req->object; in cachefiles_ondemand_init_close_req() local
433 int object_id = object->ondemand_id; in cachefiles_ondemand_init_close_req()
436 * It's possible that object id is still 0 if the cookie looking up in cachefiles_ondemand_init_close_req()
445 trace_cachefiles_ondemand_close(object, &req->msg); in cachefiles_ondemand_init_close_req()
457 struct cachefiles_object *object = req->object; in cachefiles_ondemand_init_read_req() local
460 int object_id = object->ondemand_id; in cachefiles_ondemand_init_read_req()
472 trace_cachefiles_ondemand_read(object, &req->msg, load); in cachefiles_ondemand_init_read_req()
476 int cachefiles_ondemand_init_object(struct cachefiles_object *object) in cachefiles_ondemand_init_object() argument
478 struct fscache_cookie *cookie = object->cookie; in cachefiles_ondemand_init_object()
479 struct fscache_volume *volume = object->volume->vcookie; in cachefiles_ondemand_init_object()
486 * allocated object ID if any. in cachefiles_ondemand_init_object()
488 if (object->ondemand_id > 0) in cachefiles_ondemand_init_object()
496 return cachefiles_ondemand_send_req(object, CACHEFILES_OP_OPEN, in cachefiles_ondemand_init_object()
500 void cachefiles_ondemand_clean_object(struct cachefiles_object *object) in cachefiles_ondemand_clean_object() argument
502 cachefiles_ondemand_send_req(object, CACHEFILES_OP_CLOSE, 0, in cachefiles_ondemand_clean_object()
506 int cachefiles_ondemand_read(struct cachefiles_object *object, in cachefiles_ondemand_read() argument
511 return cachefiles_ondemand_send_req(object, CACHEFILES_OP_READ, in cachefiles_ondemand_read()