Lines Matching defs:coda_file
31 coda_file_read(struct file *coda_file, char __user *buf, size_t count, loff_t *ppos)
36 cfi = CODA_FTOC(coda_file);
47 coda_file_splice_read(struct file *coda_file, loff_t *ppos,
56 cfi = CODA_FTOC(coda_file);
68 coda_file_write(struct file *coda_file, const char __user *buf, size_t count, loff_t *ppos)
70 struct inode *host_inode, *coda_inode = coda_file->f_path.dentry->d_inode;
75 cfi = CODA_FTOC(coda_file);
96 coda_file_mmap(struct file *coda_file, struct vm_area_struct *vma)
103 cfi = CODA_FTOC(coda_file);
110 coda_inode = coda_file->f_path.dentry->d_inode;
112 coda_file->f_mapping = host_file->f_mapping;
129 int coda_open(struct inode *coda_inode, struct file *coda_file)
133 unsigned short flags = coda_file->f_flags & (~O_EXCL);
154 host_file->f_flags |= coda_file->f_flags & (O_APPEND | O_SYNC);
160 BUG_ON(coda_file->private_data != NULL);
161 coda_file->private_data = cfi;
167 int coda_release(struct inode *coda_inode, struct file *coda_file)
169 unsigned short flags = (coda_file->f_flags) & (~O_EXCL);
178 cfi = CODA_FTOC(coda_file);
182 coda_flags, coda_file->f_cred->fsuid);
195 kfree(coda_file->private_data);
196 coda_file->private_data = NULL;
205 int coda_fsync(struct file *coda_file, int datasync)
208 struct inode *coda_inode = coda_file->f_path.dentry->d_inode;
216 cfi = CODA_FTOC(coda_file);