Searched refs:aio_req (Results 1 – 4 of 4) sorted by relevance
48 static void fuse_aio_cleanup_handler(struct fuse_aio_req *aio_req) in fuse_aio_cleanup_handler() argument50 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() local68 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() local94 aio_req = kmalloc(sizeof(struct fuse_aio_req), GFP_KERNEL); in fuse_passthrough_read_iter()95 if (!aio_req) { in fuse_passthrough_read_iter()[all …]
755 static inline void fuse_bpf_aio_put(struct fuse_bpf_aio_req *aio_req) in fuse_bpf_aio_put() argument757 if (refcount_dec_and_test(&aio_req->ref)) in fuse_bpf_aio_put()758 kmem_cache_free(fuse_bpf_aio_request_cachep, aio_req); in fuse_bpf_aio_put()761 static void fuse_bpf_aio_cleanup_handler(struct fuse_bpf_aio_req *aio_req) in fuse_bpf_aio_cleanup_handler() argument763 struct kiocb *iocb = &aio_req->iocb; in fuse_bpf_aio_cleanup_handler()764 struct kiocb *iocb_orig = aio_req->iocb_orig; in fuse_bpf_aio_cleanup_handler()773 fuse_bpf_aio_put(aio_req); in fuse_bpf_aio_cleanup_handler()778 struct fuse_bpf_aio_req *aio_req = in fuse_bpf_aio_rw_complete() local780 struct kiocb *iocb_orig = aio_req->iocb_orig; in fuse_bpf_aio_rw_complete()782 fuse_bpf_aio_cleanup_handler(aio_req); in fuse_bpf_aio_rw_complete()[all …]
242 static inline void ovl_aio_put(struct ovl_aio_req *aio_req) in ovl_aio_put() argument244 if (refcount_dec_and_test(&aio_req->ref)) { in ovl_aio_put()245 fput(aio_req->iocb.ki_filp); in ovl_aio_put()246 kmem_cache_free(ovl_aio_request_cachep, aio_req); in ovl_aio_put()250 static void ovl_aio_cleanup_handler(struct ovl_aio_req *aio_req) in ovl_aio_cleanup_handler() argument252 struct kiocb *iocb = &aio_req->iocb; in ovl_aio_cleanup_handler()253 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_cleanup_handler()266 ovl_aio_put(aio_req); in ovl_aio_cleanup_handler()271 struct ovl_aio_req *aio_req = container_of(iocb, in ovl_aio_rw_complete() local273 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_rw_complete()[all …]
1021 struct ceph_aio_request *aio_req) in ceph_aio_complete() argument1026 if (!atomic_dec_and_test(&aio_req->pending_reqs)) in ceph_aio_complete()1029 if (aio_req->iocb->ki_flags & IOCB_DIRECT) in ceph_aio_complete()1032 ret = aio_req->error; in ceph_aio_complete()1034 ret = aio_req->total_len; in ceph_aio_complete()1038 if (ret >= 0 && aio_req->write) { in ceph_aio_complete()1041 loff_t endoff = aio_req->iocb->ki_pos + aio_req->total_len; in ceph_aio_complete()1050 &aio_req->prealloc_cf); in ceph_aio_complete()1057 ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : in ceph_aio_complete()1060 aio_req->iocb->ki_complete(aio_req->iocb, ret, 0); in ceph_aio_complete()[all …]