Home
last modified time | relevance | path

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

/fs/fuse/
Dpassthrough.c48 static void fuse_aio_cleanup_handler(struct fuse_aio_req *aio_req) in fuse_aio_cleanup_handler() argument
50 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() local
68 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() local
94 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 …]
/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.c1015 struct ceph_aio_request *aio_req) in ceph_aio_complete() argument
1020 if (!atomic_dec_and_test(&aio_req->pending_reqs)) in ceph_aio_complete()
1023 if (aio_req->iocb->ki_flags & IOCB_DIRECT) in ceph_aio_complete()
1026 ret = aio_req->error; in ceph_aio_complete()
1028 ret = aio_req->total_len; in ceph_aio_complete()
1032 if (ret >= 0 && aio_req->write) { in ceph_aio_complete()
1035 loff_t endoff = aio_req->iocb->ki_pos + aio_req->total_len; in ceph_aio_complete()
1044 &aio_req->prealloc_cf); in ceph_aio_complete()
1051 ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : in ceph_aio_complete()
1054 aio_req->iocb->ki_complete(aio_req->iocb, ret, 0); in ceph_aio_complete()
[all …]