Home
last modified time | relevance | path

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

/fs/fuse/
Dpassthrough.c49 static void fuse_aio_cleanup_handler(struct fuse_aio_req *aio_req) in fuse_aio_cleanup_handler() argument
51 struct kiocb *iocb = &aio_req->iocb; in fuse_aio_cleanup_handler()
52 struct kiocb *iocb_fuse = aio_req->iocb_fuse; in fuse_aio_cleanup_handler()
62 kfree(aio_req); in fuse_aio_cleanup_handler()
67 struct fuse_aio_req *aio_req = in fuse_aio_rw_complete() local
69 struct kiocb *iocb_fuse = aio_req->iocb_fuse; in fuse_aio_rw_complete()
71 fuse_aio_cleanup_handler(aio_req); in fuse_aio_rw_complete()
93 struct fuse_aio_req *aio_req; in fuse_passthrough_read_iter() local
95 aio_req = kmalloc(sizeof(struct fuse_aio_req), GFP_KERNEL); in fuse_passthrough_read_iter()
96 if (!aio_req) { in fuse_passthrough_read_iter()
[all …]
Dbacking.c755 static inline void fuse_bpf_aio_put(struct fuse_bpf_aio_req *aio_req) in fuse_bpf_aio_put() argument
757 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() argument
763 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() local
780 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 …]
/fs/overlayfs/
Dfile.c246 static inline void ovl_aio_put(struct ovl_aio_req *aio_req) in ovl_aio_put() argument
248 if (refcount_dec_and_test(&aio_req->ref)) { in ovl_aio_put()
249 fput(aio_req->iocb.ki_filp); in ovl_aio_put()
250 kmem_cache_free(ovl_aio_request_cachep, aio_req); in ovl_aio_put()
254 static void ovl_aio_cleanup_handler(struct ovl_aio_req *aio_req) in ovl_aio_cleanup_handler() argument
256 struct kiocb *iocb = &aio_req->iocb; in ovl_aio_cleanup_handler()
257 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_cleanup_handler()
270 ovl_aio_put(aio_req); in ovl_aio_cleanup_handler()
275 struct ovl_aio_req *aio_req = container_of(iocb, in ovl_aio_rw_complete() local
277 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_rw_complete()
[all …]
/fs/ceph/
Dfile.c1072 struct ceph_aio_request *aio_req) in ceph_aio_complete() argument
1077 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 …]