Lines Matching refs:host_file
36 struct file *host_file; in coda_file_read() local
40 host_file = cfi->cfi_container; in coda_file_read()
42 if (!host_file->f_op || !host_file->f_op->read) in coda_file_read()
45 return host_file->f_op->read(host_file, buf, count, ppos); in coda_file_read()
53 struct file *host_file; in coda_file_write() local
58 host_file = cfi->cfi_container; in coda_file_write()
60 if (!host_file->f_op || !host_file->f_op->write) in coda_file_write()
65 ret = host_file->f_op->write(host_file, buf, count, ppos); in coda_file_write()
67 coda_inode->i_size = host_file->f_dentry->d_inode->i_size; in coda_file_write()
80 struct file *host_file; in coda_file_mmap() local
85 host_file = cfi->cfi_container; in coda_file_mmap()
87 if (!host_file->f_op || !host_file->f_op->mmap) in coda_file_mmap()
91 host_inode = host_file->f_dentry->d_inode; in coda_file_mmap()
105 return host_file->f_op->mmap(host_file, vma); in coda_file_mmap()
110 struct file *host_file = NULL; in coda_open() local
126 &host_file); in coda_open()
128 if (!error && !host_file) in coda_open()
137 host_file->f_flags |= coda_file->f_flags & (O_APPEND | O_SYNC); in coda_open()
141 cfi->cfi_container = host_file; in coda_open()
144 host_inode = host_file->f_dentry->d_inode; in coda_open()
249 struct file *host_file; in coda_fsync() local
261 host_file = cfi->cfi_container; in coda_fsync()
265 if (host_file->f_op && host_file->f_op->fsync) { in coda_fsync()
266 host_dentry = host_file->f_dentry; in coda_fsync()
269 err = host_file->f_op->fsync(host_file, host_dentry, datasync); in coda_fsync()