Lines Matching refs:coda_file
32 struct file *coda_file;
40 struct file *coda_file = iocb->ki_filp;
41 struct inode *coda_inode = file_inode(coda_file);
42 struct coda_file_info *cfi = coda_ftoc(coda_file);
65 struct file *coda_file = iocb->ki_filp;
66 struct inode *coda_inode = file_inode(coda_file);
67 struct coda_file_info *cfi = coda_ftoc(coda_file);
118 fput(cvm_ops->coda_file);
124 coda_file_mmap(struct file *coda_file, struct vm_area_struct *vma)
126 struct inode *coda_inode = file_inode(coda_file);
127 struct coda_file_info *cfi = coda_ftoc(coda_file);
139 if (WARN_ON(coda_file != vma->vm_file))
157 coda_file->f_mapping = host_file->f_mapping;
178 /* if call_mmap fails, our caller will put coda_file so we
191 cvm_ops->coda_file = coda_file;
199 int coda_open(struct inode *coda_inode, struct file *coda_file)
203 unsigned short flags = coda_file->f_flags & (~O_EXCL);
221 host_file->f_flags |= coda_file->f_flags & (O_APPEND | O_SYNC);
229 BUG_ON(coda_file->private_data != NULL);
230 coda_file->private_data = cfi;
234 int coda_release(struct inode *coda_inode, struct file *coda_file)
236 unsigned short flags = (coda_file->f_flags) & (~O_EXCL);
243 cfi = coda_ftoc(coda_file);
246 coda_flags, coda_file->f_cred->fsuid);
261 kfree(coda_file->private_data);
262 coda_file->private_data = NULL;
269 int coda_fsync(struct file *coda_file, loff_t start, loff_t end, int datasync)
272 struct inode *coda_inode = file_inode(coda_file);
285 cfi = coda_ftoc(coda_file);