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()
84 ret = vfs_iter_write(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_write_iter()
93 &cfi->cfi_access_intent, in coda_file_write_iter()
104 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_splice_read() local
105 struct file *in = cfi->cfi_container; in coda_file_splice_read()
110 &cfi->cfi_access_intent, in coda_file_splice_read()
119 &cfi->cfi_access_intent, in coda_file_splice_read()
156 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_mmap() local
157 struct file *host_file = cfi->cfi_container; in coda_file_mmap()
175 &cfi->cfi_access_intent, in coda_file_mmap()
200 cfi->cfi_mapcount++; in coda_file_mmap()
234 struct coda_file_info *cfi; in coda_open() local
236 cfi = kmalloc(sizeof(struct coda_file_info), GFP_KERNEL); in coda_open()
237 if (!cfi) in coda_open()
246 kfree(cfi); in coda_open()
252 cfi->cfi_magic = CODA_MAGIC; in coda_open()
253 cfi->cfi_mapcount = 0; in coda_open()
254 cfi->cfi_container = host_file; in coda_open()
256 cfi->cfi_access_intent = true; in coda_open()
259 coda_file->private_data = cfi; in coda_open()
267 struct coda_file_info *cfi; in coda_release() local
271 cfi = coda_ftoc(coda_file); in coda_release()
276 host_inode = file_inode(cfi->cfi_container); in coda_release()
282 cii->c_mapcount -= cfi->cfi_mapcount; in coda_release()
288 fput(cfi->cfi_container); in coda_release()
301 struct coda_file_info *cfi; in coda_fsync() local
313 cfi = coda_ftoc(coda_file); in coda_fsync()
314 host_file = cfi->cfi_container; in coda_fsync()