Lines Matching refs:coda_file
33 coda_file_read(struct file *coda_file, char *buf, size_t count, loff_t *ppos) in coda_file_read() argument
38 cfi = CODA_FTOC(coda_file); in coda_file_read()
49 coda_file_write(struct file *coda_file, const char *buf, size_t count, loff_t *ppos) in coda_file_write() argument
51 struct inode *coda_inode = coda_file->f_dentry->d_inode; in coda_file_write()
56 cfi = CODA_FTOC(coda_file); in coda_file_write()
76 coda_file_mmap(struct file *coda_file, struct vm_area_struct *vma) in coda_file_mmap() argument
83 cfi = CODA_FTOC(coda_file); in coda_file_mmap()
90 coda_inode = coda_file->f_dentry->d_inode; in coda_file_mmap()
108 int coda_open(struct inode *coda_inode, struct file *coda_file) in coda_open() argument
112 unsigned short flags = coda_file->f_flags & (~O_EXCL); in coda_open()
137 host_file->f_flags |= coda_file->f_flags & (O_APPEND | O_SYNC); in coda_open()
156 if (coda_file->private_data != NULL) BUG(); in coda_open()
157 coda_file->private_data = cfi; in coda_open()
163 int coda_flush(struct file *coda_file) in coda_flush() argument
165 unsigned short flags = coda_file->f_flags & ~O_EXCL; in coda_flush()
175 if ((coda_file->f_flags & O_ACCMODE) == O_RDONLY) in coda_flush()
181 fcnt = file_count(coda_file); in coda_flush()
184 coda_inode = coda_file->f_dentry->d_inode; in coda_flush()
186 cfi = CODA_FTOC(coda_file); in coda_flush()
200 int coda_release(struct inode *coda_inode, struct file *coda_file) in coda_release() argument
202 unsigned short flags = (coda_file->f_flags) & (~O_EXCL); in coda_release()
221 cfi = CODA_FTOC(coda_file); in coda_release()
240 kfree(coda_file->private_data); in coda_release()
241 coda_file->private_data = NULL; in coda_release()
247 int coda_fsync(struct file *coda_file, struct dentry *coda_dentry, int datasync) in coda_fsync() argument
259 cfi = CODA_FTOC(coda_file); in coda_fsync()