Lines Matching refs:aio_req
49 static void fuse_aio_cleanup_handler(struct fuse_aio_req *aio_req) in fuse_aio_cleanup_handler() argument
51 struct kiocb *iocb = &aio_req->iocb; in fuse_aio_cleanup_handler()
52 struct kiocb *iocb_fuse = aio_req->iocb_fuse; in fuse_aio_cleanup_handler()
62 kfree(aio_req); in fuse_aio_cleanup_handler()
67 struct fuse_aio_req *aio_req = in fuse_aio_rw_complete() local
69 struct kiocb *iocb_fuse = aio_req->iocb_fuse; in fuse_aio_rw_complete()
71 fuse_aio_cleanup_handler(aio_req); in fuse_aio_rw_complete()
93 struct fuse_aio_req *aio_req; in fuse_passthrough_read_iter() local
95 aio_req = kmalloc(sizeof(struct fuse_aio_req), GFP_KERNEL); in fuse_passthrough_read_iter()
96 if (!aio_req) { in fuse_passthrough_read_iter()
101 aio_req->iocb_fuse = iocb_fuse; in fuse_passthrough_read_iter()
102 kiocb_clone(&aio_req->iocb, iocb_fuse, passthrough_filp); in fuse_passthrough_read_iter()
103 aio_req->iocb.ki_complete = fuse_aio_rw_complete; in fuse_passthrough_read_iter()
104 ret = call_read_iter(passthrough_filp, &aio_req->iocb, iter); in fuse_passthrough_read_iter()
106 fuse_aio_cleanup_handler(aio_req); in fuse_passthrough_read_iter()
144 struct fuse_aio_req *aio_req; in fuse_passthrough_write_iter() local
146 aio_req = kmalloc(sizeof(struct fuse_aio_req), GFP_KERNEL); in fuse_passthrough_write_iter()
147 if (!aio_req) { in fuse_passthrough_write_iter()
155 aio_req->iocb_fuse = iocb_fuse; in fuse_passthrough_write_iter()
156 kiocb_clone(&aio_req->iocb, iocb_fuse, passthrough_filp); in fuse_passthrough_write_iter()
157 aio_req->iocb.ki_complete = fuse_aio_rw_complete; in fuse_passthrough_write_iter()
158 ret = call_write_iter(passthrough_filp, &aio_req->iocb, iter); in fuse_passthrough_write_iter()
160 fuse_aio_cleanup_handler(aio_req); in fuse_passthrough_write_iter()