Lines Matching refs:coda_inode
44 struct inode *coda_inode = file_inode(coda_file); in coda_file_read_iter() local
50 ret = venus_access_intent(coda_inode->i_sb, coda_i2f(coda_inode), in coda_file_read_iter()
59 venus_access_intent(coda_inode->i_sb, coda_i2f(coda_inode), in coda_file_read_iter()
69 struct inode *coda_inode = file_inode(coda_file); in coda_file_write_iter() local
76 ret = venus_access_intent(coda_inode->i_sb, coda_i2f(coda_inode), in coda_file_write_iter()
82 inode_lock(coda_inode); in coda_file_write_iter()
84 coda_inode->i_size = file_inode(host_file)->i_size; in coda_file_write_iter()
85 coda_inode->i_blocks = (coda_inode->i_size + 511) >> 9; in coda_file_write_iter()
86 inode_set_mtime_to_ts(coda_inode, inode_set_ctime_current(coda_inode)); in coda_file_write_iter()
87 inode_unlock(coda_inode); in coda_file_write_iter()
90 venus_access_intent(coda_inode->i_sb, coda_i2f(coda_inode), in coda_file_write_iter()
101 struct inode *coda_inode = file_inode(coda_file); in coda_file_splice_read() local
107 ret = venus_access_intent(coda_inode->i_sb, coda_i2f(coda_inode), in coda_file_splice_read()
116 venus_access_intent(coda_inode->i_sb, coda_i2f(coda_inode), in coda_file_splice_read()
153 struct inode *coda_inode = file_inode(coda_file); in coda_file_mmap() local
172 ret = venus_access_intent(coda_inode->i_sb, coda_i2f(coda_inode), in coda_file_mmap()
182 cii = ITOC(coda_inode); in coda_file_mmap()
185 if (coda_inode->i_mapping == &coda_inode->i_data) in coda_file_mmap()
186 coda_inode->i_mapping = host_inode->i_mapping; in coda_file_mmap()
190 else if (coda_inode->i_mapping != host_inode->i_mapping) { in coda_file_mmap()
226 int coda_open(struct inode *coda_inode, struct file *coda_file) in coda_open() argument
238 error = venus_open(coda_inode->i_sb, coda_i2f(coda_inode), coda_flags, in coda_open()
261 int coda_release(struct inode *coda_inode, struct file *coda_file) in coda_release() argument
271 venus_close(coda_inode->i_sb, coda_i2f(coda_inode), in coda_release()
275 cii = ITOC(coda_inode); in coda_release()
279 if (coda_inode->i_mapping == &host_inode->i_data) { in coda_release()
282 coda_inode->i_mapping = &coda_inode->i_data; in coda_release()
298 struct inode *coda_inode = file_inode(coda_file); in coda_fsync() local
302 if (!(S_ISREG(coda_inode->i_mode) || S_ISDIR(coda_inode->i_mode) || in coda_fsync()
303 S_ISLNK(coda_inode->i_mode))) in coda_fsync()
306 err = filemap_write_and_wait_range(coda_inode->i_mapping, start, end); in coda_fsync()
309 inode_lock(coda_inode); in coda_fsync()
316 err = venus_fsync(coda_inode->i_sb, coda_i2f(coda_inode)); in coda_fsync()
317 inode_unlock(coda_inode); in coda_fsync()