Lines Matching refs:aio_req
48 static void fuse_aio_cleanup_handler(struct fuse_aio_req *aio_req) in fuse_aio_cleanup_handler() argument
50 struct kiocb *iocb = &aio_req->iocb; in fuse_aio_cleanup_handler()
51 struct kiocb *iocb_fuse = aio_req->iocb_fuse; in fuse_aio_cleanup_handler()
61 kfree(aio_req); in fuse_aio_cleanup_handler()
66 struct fuse_aio_req *aio_req = in fuse_aio_rw_complete() local
68 struct kiocb *iocb_fuse = aio_req->iocb_fuse; in fuse_aio_rw_complete()
70 fuse_aio_cleanup_handler(aio_req); in fuse_aio_rw_complete()
92 struct fuse_aio_req *aio_req; in fuse_passthrough_read_iter() local
94 aio_req = kmalloc(sizeof(struct fuse_aio_req), GFP_KERNEL); in fuse_passthrough_read_iter()
95 if (!aio_req) { in fuse_passthrough_read_iter()
100 aio_req->iocb_fuse = iocb_fuse; in fuse_passthrough_read_iter()
101 kiocb_clone(&aio_req->iocb, iocb_fuse, passthrough_filp); in fuse_passthrough_read_iter()
102 aio_req->iocb.ki_complete = fuse_aio_rw_complete; in fuse_passthrough_read_iter()
103 ret = call_read_iter(passthrough_filp, &aio_req->iocb, iter); in fuse_passthrough_read_iter()
105 fuse_aio_cleanup_handler(aio_req); in fuse_passthrough_read_iter()
143 struct fuse_aio_req *aio_req; in fuse_passthrough_write_iter() local
145 aio_req = kmalloc(sizeof(struct fuse_aio_req), GFP_KERNEL); in fuse_passthrough_write_iter()
146 if (!aio_req) { in fuse_passthrough_write_iter()
154 aio_req->iocb_fuse = iocb_fuse; in fuse_passthrough_write_iter()
155 kiocb_clone(&aio_req->iocb, iocb_fuse, passthrough_filp); in fuse_passthrough_write_iter()
156 aio_req->iocb.ki_complete = fuse_aio_rw_complete; in fuse_passthrough_write_iter()
157 ret = call_write_iter(passthrough_filp, &aio_req->iocb, iter); in fuse_passthrough_write_iter()
159 fuse_aio_cleanup_handler(aio_req); in fuse_passthrough_write_iter()