aio_req 748 fs/ceph/file.c struct ceph_aio_request *aio_req) aio_req 753 fs/ceph/file.c if (!atomic_dec_and_test(&aio_req->pending_reqs)) aio_req 756 fs/ceph/file.c if (aio_req->iocb->ki_flags & IOCB_DIRECT) aio_req 759 fs/ceph/file.c ret = aio_req->error; aio_req 761 fs/ceph/file.c ret = aio_req->total_len; aio_req 765 fs/ceph/file.c if (ret >= 0 && aio_req->write) { aio_req 768 fs/ceph/file.c loff_t endoff = aio_req->iocb->ki_pos + aio_req->total_len; aio_req 777 fs/ceph/file.c &aio_req->prealloc_cf); aio_req 784 fs/ceph/file.c ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : aio_req 787 fs/ceph/file.c aio_req->iocb->ki_complete(aio_req->iocb, ret, 0); aio_req 789 fs/ceph/file.c ceph_free_cap_flush(aio_req->prealloc_cf); aio_req 790 fs/ceph/file.c kfree(aio_req); aio_req 797 fs/ceph/file.c struct ceph_aio_request *aio_req = req->r_priv; aio_req 808 fs/ceph/file.c BUG_ON(!aio_req->write); aio_req 819 fs/ceph/file.c } else if (!aio_req->write) { aio_req 831 fs/ceph/file.c if (aio_req->num_reqs == 1) { aio_req 833 fs/ceph/file.c loff_t endoff = aio_req->iocb->ki_pos + rc; aio_req 837 fs/ceph/file.c aio_req->total_len = rc + zlen; aio_req 849 fs/ceph/file.c aio_req->should_dirty); aio_req 853 fs/ceph/file.c cmpxchg(&aio_req->error, 0, rc); aio_req 855 fs/ceph/file.c ceph_aio_complete(inode, aio_req); aio_req 864 fs/ceph/file.c struct ceph_aio_request *aio_req = orig_req->r_priv; aio_req 898 fs/ceph/file.c req->r_mtime = aio_req->mtime; aio_req 912 fs/ceph/file.c req->r_priv = aio_req; aio_req 937 fs/ceph/file.c struct ceph_aio_request *aio_req = NULL; aio_req 1005 fs/ceph/file.c aio_req = kzalloc(sizeof(*aio_req), GFP_KERNEL); aio_req 1006 fs/ceph/file.c if (aio_req) { aio_req 1007 fs/ceph/file.c aio_req->iocb = iocb; aio_req 1008 fs/ceph/file.c aio_req->write = write; aio_req 1009 fs/ceph/file.c aio_req->should_dirty = should_dirty; aio_req 1010 fs/ceph/file.c INIT_LIST_HEAD(&aio_req->osd_reqs); aio_req 1012 fs/ceph/file.c aio_req->mtime = mtime; aio_req 1013 fs/ceph/file.c swap(aio_req->prealloc_cf, *pcf); aio_req 1032 fs/ceph/file.c if (aio_req) { aio_req 1033 fs/ceph/file.c aio_req->total_len += len; aio_req 1034 fs/ceph/file.c aio_req->num_reqs++; aio_req 1035 fs/ceph/file.c atomic_inc(&aio_req->pending_reqs); aio_req 1039 fs/ceph/file.c req->r_priv = aio_req; aio_req 1040 fs/ceph/file.c list_add_tail(&req->r_private_item, &aio_req->osd_reqs); aio_req 1085 fs/ceph/file.c if (aio_req) { aio_req 1088 fs/ceph/file.c if (aio_req->num_reqs == 0) { aio_req 1089 fs/ceph/file.c kfree(aio_req); aio_req 1096 fs/ceph/file.c list_splice(&aio_req->osd_reqs, &osd_reqs);