Home
last modified time | relevance | path

Searched refs:aio_req (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/fs/overlayfs/
H A Dfile.c279 static inline void ovl_aio_put(struct ovl_aio_req *aio_req) in ovl_aio_put() argument
281 if (refcount_dec_and_test(&aio_req->ref)) { in ovl_aio_put()
282 fput(aio_req->iocb.ki_filp); in ovl_aio_put()
283 kmem_cache_free(ovl_aio_request_cachep, aio_req); in ovl_aio_put()
287 static void ovl_aio_cleanup_handler(struct ovl_aio_req *aio_req) in ovl_aio_cleanup_handler() argument
289 struct kiocb *iocb = &aio_req->iocb; in ovl_aio_cleanup_handler()
290 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_cleanup_handler()
300 ovl_aio_put(aio_req); in ovl_aio_cleanup_handler()
305 struct ovl_aio_req *aio_req = container_of(iocb, in ovl_aio_rw_complete() local
307 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_rw_complete()
[all …]
/openbmc/linux/fs/ceph/
H A Dfile.c1194 struct ceph_aio_request *aio_req) in ceph_aio_complete() argument
1199 if (!atomic_dec_and_test(&aio_req->pending_reqs)) in ceph_aio_complete()
1202 if (aio_req->iocb->ki_flags & IOCB_DIRECT) in ceph_aio_complete()
1205 ret = aio_req->error; in ceph_aio_complete()
1207 ret = aio_req->total_len; in ceph_aio_complete()
1211 if (ret >= 0 && aio_req->write) { in ceph_aio_complete()
1214 loff_t endoff = aio_req->iocb->ki_pos + aio_req->total_len; in ceph_aio_complete()
1222 &aio_req->prealloc_cf); in ceph_aio_complete()
1229 ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : in ceph_aio_complete()
1232 aio_req->iocb->ki_complete(aio_req->iocb, ret); in ceph_aio_complete()
[all …]