Lines Matching refs:cfi
45 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_read_iter() local
51 &cfi->cfi_access_intent, in coda_file_read_iter()
56 ret = vfs_iter_read(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_read_iter()
60 &cfi->cfi_access_intent, in coda_file_read_iter()
70 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_write_iter() local
71 struct file *host_file = cfi->cfi_container; in coda_file_write_iter()
77 &cfi->cfi_access_intent, in coda_file_write_iter()
83 ret = vfs_iter_write(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_write_iter()
91 &cfi->cfi_access_intent, in coda_file_write_iter()
102 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_splice_read() local
103 struct file *in = cfi->cfi_container; in coda_file_splice_read()
108 &cfi->cfi_access_intent, in coda_file_splice_read()
117 &cfi->cfi_access_intent, in coda_file_splice_read()
154 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_mmap() local
155 struct file *host_file = cfi->cfi_container; in coda_file_mmap()
173 &cfi->cfi_access_intent, in coda_file_mmap()
198 cfi->cfi_mapcount++; in coda_file_mmap()
232 struct coda_file_info *cfi; in coda_open() local
234 cfi = kmalloc(sizeof(struct coda_file_info), GFP_KERNEL); in coda_open()
235 if (!cfi) in coda_open()
244 kfree(cfi); in coda_open()
250 cfi->cfi_magic = CODA_MAGIC; in coda_open()
251 cfi->cfi_mapcount = 0; in coda_open()
252 cfi->cfi_container = host_file; in coda_open()
254 cfi->cfi_access_intent = true; in coda_open()
257 coda_file->private_data = cfi; in coda_open()
265 struct coda_file_info *cfi; in coda_release() local
269 cfi = coda_ftoc(coda_file); in coda_release()
274 host_inode = file_inode(cfi->cfi_container); in coda_release()
280 cii->c_mapcount -= cfi->cfi_mapcount; in coda_release()
286 fput(cfi->cfi_container); in coda_release()
299 struct coda_file_info *cfi; in coda_fsync() local
311 cfi = coda_ftoc(coda_file); in coda_fsync()
312 host_file = cfi->cfi_container; in coda_fsync()