Searched refs:aio_req (Results 1 – 2 of 2) sorted by relevance
259 static inline void ovl_aio_put(struct ovl_aio_req *aio_req) in ovl_aio_put() argument261 if (refcount_dec_and_test(&aio_req->ref)) { in ovl_aio_put()262 fdput(aio_req->fd); in ovl_aio_put()263 kmem_cache_free(ovl_aio_request_cachep, aio_req); in ovl_aio_put()267 static void ovl_aio_cleanup_handler(struct ovl_aio_req *aio_req) in ovl_aio_cleanup_handler() argument269 struct kiocb *iocb = &aio_req->iocb; in ovl_aio_cleanup_handler()270 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_cleanup_handler()283 ovl_aio_put(aio_req); in ovl_aio_cleanup_handler()288 struct ovl_aio_req *aio_req = container_of(iocb, in ovl_aio_rw_complete() local290 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_rw_complete()[all …]
1072 struct ceph_aio_request *aio_req) in ceph_aio_complete() argument1077 if (!atomic_dec_and_test(&aio_req->pending_reqs)) in ceph_aio_complete()1080 if (aio_req->iocb->ki_flags & IOCB_DIRECT) in ceph_aio_complete()1083 ret = aio_req->error; in ceph_aio_complete()1085 ret = aio_req->total_len; in ceph_aio_complete()1089 if (ret >= 0 && aio_req->write) { in ceph_aio_complete()1092 loff_t endoff = aio_req->iocb->ki_pos + aio_req->total_len; in ceph_aio_complete()1100 &aio_req->prealloc_cf); in ceph_aio_complete()1107 ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : in ceph_aio_complete()1110 aio_req->iocb->ki_complete(aio_req->iocb, ret); in ceph_aio_complete()[all …]