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()
71 trace_cachefiles_vfs_error(object, file_inode(file), ret, in cachefiles_set_object_xattr()
73 trace_cachefiles_coherency(object, file_inode(file)->i_ino, in cachefiles_set_object_xattr()
78 object, in cachefiles_set_object_xattr()
81 trace_cachefiles_coherency(object, file_inode(file)->i_ino, in cachefiles_set_object_xattr()
94 int cachefiles_check_auxdata(struct cachefiles_object *object, struct file *file) in cachefiles_check_auxdata() argument
98 unsigned int len = object->cookie->aux_len, tlen; in cachefiles_check_auxdata()
99 const void *p = fscache_get_aux(object->cookie); in cachefiles_check_auxdata()
114 trace_cachefiles_vfs_error(object, file_inode(file), xlen, in cachefiles_check_auxdata()
118 object, in cachefiles_check_auxdata()
125 } else if (be64_to_cpu(buf->object_size) != object->cookie->object_size) { in cachefiles_check_auxdata()
136 trace_cachefiles_coherency(object, file_inode(file)->i_ino, in cachefiles_check_auxdata()
146 struct cachefiles_object *object, in cachefiles_remove_object_xattr() argument
155 trace_cachefiles_vfs_error(object, d_inode(dentry), ret, in cachefiles_remove_object_xattr()
176 struct cachefiles_object *object = cookie->cache_priv; in cachefiles_prepare_to_write() local
177 struct cachefiles_cache *cache = object->volume->cache; in cachefiles_prepare_to_write()
179 _enter("c=%08x", object->cookie->debug_id); in cachefiles_prepare_to_write()
181 if (!test_bit(CACHEFILES_OBJECT_USING_TMPFILE, &object->flags)) { in cachefiles_prepare_to_write()
183 cachefiles_set_object_xattr(object); in cachefiles_prepare_to_write()