Searched refs:aio_req (Results 1 – 2 of 2) sorted by relevance
255 static void ovl_aio_cleanup_handler(struct ovl_aio_req *aio_req) in ovl_aio_cleanup_handler() argument257 struct kiocb *iocb = &aio_req->iocb; in ovl_aio_cleanup_handler()258 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_cleanup_handler()271 fdput(aio_req->fd); in ovl_aio_cleanup_handler()272 kmem_cache_free(ovl_aio_request_cachep, aio_req); in ovl_aio_cleanup_handler()277 struct ovl_aio_req *aio_req = container_of(iocb, in ovl_aio_rw_complete() local279 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_rw_complete()281 ovl_aio_cleanup_handler(aio_req); in ovl_aio_rw_complete()310 struct ovl_aio_req *aio_req; in ovl_read_iter() local313 aio_req = kmem_cache_zalloc(ovl_aio_request_cachep, GFP_KERNEL); in ovl_read_iter()[all …]
986 struct ceph_aio_request *aio_req) in ceph_aio_complete() argument991 if (!atomic_dec_and_test(&aio_req->pending_reqs)) in ceph_aio_complete()994 if (aio_req->iocb->ki_flags & IOCB_DIRECT) in ceph_aio_complete()997 ret = aio_req->error; in ceph_aio_complete()999 ret = aio_req->total_len; in ceph_aio_complete()1003 if (ret >= 0 && aio_req->write) { in ceph_aio_complete()1006 loff_t endoff = aio_req->iocb->ki_pos + aio_req->total_len; in ceph_aio_complete()1015 &aio_req->prealloc_cf); in ceph_aio_complete()1022 ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : in ceph_aio_complete()1025 aio_req->iocb->ki_complete(aio_req->iocb, ret, 0); in ceph_aio_complete()[all …]