Lines Matching refs:cfi
42 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_read_iter() local
48 &cfi->cfi_access_intent, in coda_file_read_iter()
53 ret = vfs_iter_read(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_read_iter()
57 &cfi->cfi_access_intent, in coda_file_read_iter()
67 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_write_iter() local
68 struct file *host_file = cfi->cfi_container; in coda_file_write_iter()
74 &cfi->cfi_access_intent, in coda_file_write_iter()
81 ret = vfs_iter_write(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_write_iter()
90 &cfi->cfi_access_intent, in coda_file_write_iter()
127 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_mmap() local
128 struct file *host_file = cfi->cfi_container; in coda_file_mmap()
146 &cfi->cfi_access_intent, in coda_file_mmap()
171 cfi->cfi_mapcount++; in coda_file_mmap()
205 struct coda_file_info *cfi; in coda_open() local
207 cfi = kmalloc(sizeof(struct coda_file_info), GFP_KERNEL); in coda_open()
208 if (!cfi) in coda_open()
217 kfree(cfi); in coda_open()
223 cfi->cfi_magic = CODA_MAGIC; in coda_open()
224 cfi->cfi_mapcount = 0; in coda_open()
225 cfi->cfi_container = host_file; in coda_open()
227 cfi->cfi_access_intent = true; in coda_open()
230 coda_file->private_data = cfi; in coda_open()
238 struct coda_file_info *cfi; in coda_release() local
243 cfi = coda_ftoc(coda_file); in coda_release()
248 host_inode = file_inode(cfi->cfi_container); in coda_release()
254 cii->c_mapcount -= cfi->cfi_mapcount; in coda_release()
260 fput(cfi->cfi_container); in coda_release()
273 struct coda_file_info *cfi; in coda_fsync() local
285 cfi = coda_ftoc(coda_file); in coda_fsync()
286 host_file = cfi->cfi_container; in coda_fsync()