Lines Matching refs:coda_inode
52 struct inode *coda_inode = file_inode(coda_file); in coda_file_write_iter() local
61 inode_lock(coda_inode); in coda_file_write_iter()
63 coda_inode->i_size = file_inode(host_file)->i_size; in coda_file_write_iter()
64 coda_inode->i_blocks = (coda_inode->i_size + 511) >> 9; in coda_file_write_iter()
65 coda_inode->i_mtime = coda_inode->i_ctime = current_time(coda_inode); in coda_file_write_iter()
66 inode_unlock(coda_inode); in coda_file_write_iter()
105 struct inode *coda_inode, *host_inode; in coda_file_mmap() local
123 coda_inode = file_inode(coda_file); in coda_file_mmap()
126 cii = ITOC(coda_inode); in coda_file_mmap()
129 if (coda_inode->i_mapping == &coda_inode->i_data) in coda_file_mmap()
130 coda_inode->i_mapping = host_inode->i_mapping; in coda_file_mmap()
134 else if (coda_inode->i_mapping != host_inode->i_mapping) { in coda_file_mmap()
170 int coda_open(struct inode *coda_inode, struct file *coda_file) in coda_open() argument
182 error = venus_open(coda_inode->i_sb, coda_i2f(coda_inode), coda_flags, in coda_open()
203 int coda_release(struct inode *coda_inode, struct file *coda_file) in coda_release() argument
215 err = venus_close(coda_inode->i_sb, coda_i2f(coda_inode), in coda_release()
219 cii = ITOC(coda_inode); in coda_release()
223 if (coda_inode->i_mapping == &host_inode->i_data) { in coda_release()
226 coda_inode->i_mapping = &coda_inode->i_data; in coda_release()
242 struct inode *coda_inode = file_inode(coda_file); in coda_fsync() local
246 if (!(S_ISREG(coda_inode->i_mode) || S_ISDIR(coda_inode->i_mode) || in coda_fsync()
247 S_ISLNK(coda_inode->i_mode))) in coda_fsync()
250 err = filemap_write_and_wait_range(coda_inode->i_mapping, start, end); in coda_fsync()
253 inode_lock(coda_inode); in coda_fsync()
261 err = venus_fsync(coda_inode->i_sb, coda_i2f(coda_inode)); in coda_fsync()
262 inode_unlock(coda_inode); in coda_fsync()