Lines Matching refs:object
39 int cachefiles_set_object_xattr(struct cachefiles_object *object) in cachefiles_set_object_xattr() argument
43 struct file *file = object->file; in cachefiles_set_object_xattr()
44 unsigned int len = object->cookie->aux_len; in cachefiles_set_object_xattr()
51 _enter("%x,#%d", object->debug_id, len); in cachefiles_set_object_xattr()
57 buf->object_size = cpu_to_be64(object->cookie->object_size); in cachefiles_set_object_xattr()
60 buf->content = object->content_info; in cachefiles_set_object_xattr()
61 if (test_bit(FSCACHE_COOKIE_LOCAL_WRITE, &object->cookie->flags)) in cachefiles_set_object_xattr()
64 memcpy(buf->data, fscache_get_aux(object->cookie), len); in cachefiles_set_object_xattr()
77 trace_cachefiles_vfs_error(object, file_inode(file), ret, in cachefiles_set_object_xattr()
79 trace_cachefiles_coherency(object, file_inode(file)->i_ino, in cachefiles_set_object_xattr()
84 object, in cachefiles_set_object_xattr()
87 trace_cachefiles_coherency(object, file_inode(file)->i_ino, in cachefiles_set_object_xattr()
100 int cachefiles_check_auxdata(struct cachefiles_object *object, struct file *file) in cachefiles_check_auxdata() argument
104 unsigned int len = object->cookie->aux_len, tlen; in cachefiles_check_auxdata()
105 const void *p = fscache_get_aux(object->cookie); in cachefiles_check_auxdata()
121 trace_cachefiles_vfs_error(object, file_inode(file), xlen, in cachefiles_check_auxdata()
126 object, in cachefiles_check_auxdata()
133 } else if (be64_to_cpu(buf->object_size) != object->cookie->object_size) { in cachefiles_check_auxdata()
144 trace_cachefiles_coherency(object, file_inode(file)->i_ino, in cachefiles_check_auxdata()
154 struct cachefiles_object *object, in cachefiles_remove_object_xattr() argument
169 trace_cachefiles_vfs_error(object, d_inode(dentry), ret, in cachefiles_remove_object_xattr()
190 struct cachefiles_object *object = cookie->cache_priv; in cachefiles_prepare_to_write() local
191 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_prepare_to_write()
193 _enter("c=%08x", object->cookie->debug_id); in cachefiles_prepare_to_write()
195 if (!test_bit(CACHEFILES_OBJECT_USING_TMPFILE, &object->flags)) { in cachefiles_prepare_to_write()
197 cachefiles_set_object_xattr(object); in cachefiles_prepare_to_write()