Lines Matching refs:coda_inode

51 	struct inode *coda_inode = coda_file->f_dentry->d_inode;  in coda_file_write()  local
63 down(&coda_inode->i_sem); in coda_file_write()
67 coda_inode->i_size = host_file->f_dentry->d_inode->i_size; in coda_file_write()
68 coda_inode->i_blocks = (coda_inode->i_size + 511) >> 9; in coda_file_write()
69 coda_inode->i_mtime = coda_inode->i_ctime = CURRENT_TIME; in coda_file_write()
70 up(&coda_inode->i_sem); in coda_file_write()
81 struct inode *coda_inode, *host_inode; in coda_file_mmap() local
90 coda_inode = coda_file->f_dentry->d_inode; in coda_file_mmap()
92 if (coda_inode->i_mapping == &coda_inode->i_data) in coda_file_mmap()
93 coda_inode->i_mapping = host_inode->i_mapping; in coda_file_mmap()
97 else if (coda_inode->i_mapping != host_inode->i_mapping) in coda_file_mmap()
101 cii = ITOC(coda_inode); in coda_file_mmap()
108 int coda_open(struct inode *coda_inode, struct file *coda_file) in coda_open() argument
125 error = venus_open(coda_inode->i_sb, coda_i2f(coda_inode), coda_flags, in coda_open()
145 if (coda_inode->i_mapping == &coda_inode->i_data) in coda_open()
146 coda_inode->i_mapping = host_inode->i_mapping; in coda_open()
148 else if (coda_inode->i_mapping != host_inode->i_mapping) { in coda_open()
153 coda_inode->i_mapping = host_inode->i_mapping; in coda_open()
168 struct inode *coda_inode; in coda_flush() local
184 coda_inode = coda_file->f_dentry->d_inode; in coda_flush()
189 err = venus_store(coda_inode->i_sb, coda_i2f(coda_inode), coda_flags, in coda_flush()
200 int coda_release(struct inode *coda_inode, struct file *coda_file) in coda_release() argument
213 err = venus_release(coda_inode->i_sb, coda_i2f(coda_inode), in coda_release()
225 err = venus_close(coda_inode->i_sb, coda_i2f(coda_inode), in coda_release()
229 cii = ITOC(coda_inode); in coda_release()
232 if (coda_inode->i_mapping == &host_inode->i_data) { in coda_release()
235 coda_inode->i_mapping = &coda_inode->i_data; in coda_release()
251 struct inode *host_inode, *coda_inode = coda_dentry->d_inode; in coda_fsync() local
255 if (!(S_ISREG(coda_inode->i_mode) || S_ISDIR(coda_inode->i_mode) || in coda_fsync()
256 S_ISLNK(coda_inode->i_mode))) in coda_fsync()
275 err = venus_fsync(coda_inode->i_sb, coda_i2f(coda_inode)); in coda_fsync()