Lines Matching refs:passthrough_filp
82 struct file *passthrough_filp = ff->passthrough.filp; in fuse_passthrough_read_iter() local
89 ret = vfs_iter_read(passthrough_filp, iter, &iocb_fuse->ki_pos, in fuse_passthrough_read_iter()
102 kiocb_clone(&aio_req->iocb, iocb_fuse, passthrough_filp); in fuse_passthrough_read_iter()
104 ret = call_read_iter(passthrough_filp, &aio_req->iocb, iter); in fuse_passthrough_read_iter()
111 fuse_file_accessed(fuse_filp, passthrough_filp); in fuse_passthrough_read_iter()
124 struct file *passthrough_filp = ff->passthrough.filp; in fuse_passthrough_write_iter() local
125 struct inode *passthrough_inode = file_inode(passthrough_filp); in fuse_passthrough_write_iter()
132 fuse_copyattr(fuse_filp, passthrough_filp); in fuse_passthrough_write_iter()
136 file_start_write(passthrough_filp); in fuse_passthrough_write_iter()
137 ret = vfs_iter_write(passthrough_filp, iter, &iocb_fuse->ki_pos, in fuse_passthrough_write_iter()
140 file_end_write(passthrough_filp); in fuse_passthrough_write_iter()
142 fuse_copyattr(fuse_filp, passthrough_filp); in fuse_passthrough_write_iter()
152 file_start_write(passthrough_filp); in fuse_passthrough_write_iter()
156 kiocb_clone(&aio_req->iocb, iocb_fuse, passthrough_filp); in fuse_passthrough_write_iter()
158 ret = call_write_iter(passthrough_filp, &aio_req->iocb, iter); in fuse_passthrough_write_iter()
174 struct file *passthrough_filp = ff->passthrough.filp; in fuse_passthrough_mmap() local
176 if (!passthrough_filp->f_op->mmap) in fuse_passthrough_mmap()
182 vma->vm_file = get_file(passthrough_filp); in fuse_passthrough_mmap()
189 fput(passthrough_filp); in fuse_passthrough_mmap()
193 fuse_file_accessed(file, passthrough_filp); in fuse_passthrough_mmap()
201 struct file *passthrough_filp; in fuse_passthrough_open() local
210 passthrough_filp = fget(lower_fd); in fuse_passthrough_open()
211 if (!passthrough_filp) { in fuse_passthrough_open()
216 if (!passthrough_filp->f_op->read_iter || in fuse_passthrough_open()
217 !((passthrough_filp->f_path.mnt->mnt_flags | MNT_READONLY) || in fuse_passthrough_open()
218 passthrough_filp->f_op->write_iter)) { in fuse_passthrough_open()
224 passthrough_inode = file_inode(passthrough_filp); in fuse_passthrough_open()
238 passthrough->filp = passthrough_filp; in fuse_passthrough_open()
254 fput(passthrough_filp); in fuse_passthrough_open()