From 0596be7e6a39da44e2dcba74a97bb8b89cb71bdd Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Thu, 17 Nov 2016 15:40:41 +0100 Subject: qed: Add return value to qed_aio_read/write_data() Don't recurse into qed_aio_next_io() and qed_aio_complete() here, but just return an error code and let the caller handle it. Signed-off-by: Kevin Wolf Reviewed-by: Stefan Hajnoczi --- block/qed.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'block/qed.h') diff --git a/block/qed.h b/block/qed.h index 51443fa2e0..8644fed3a7 100644 --- a/block/qed.h +++ b/block/qed.h @@ -177,27 +177,6 @@ enum { QED_CLUSTER_L1, /* cluster missing in L1 */ }; -/** - * qed_find_cluster() completion callback - * - * @opaque: User data for completion callback - * @ret: QED_CLUSTER_FOUND Success - * QED_CLUSTER_L2 Data cluster unallocated in L2 - * QED_CLUSTER_L1 L2 unallocated in L1 - * -errno POSIX error occurred - * @offset: Data cluster offset - * @len: Contiguous bytes starting from cluster offset - * - * This function is invoked when qed_find_cluster() completes. - * - * On success ret is QED_CLUSTER_FOUND and offset/len are a contiguous range - * in the image file. - * - * On failure ret is QED_CLUSTER_L2 or QED_CLUSTER_L1 for missing L2 or L1 - * table offset, respectively. len is number of contiguous unallocated bytes. - */ -typedef void QEDFindClusterFunc(void *opaque, int ret, uint64_t offset, size_t len); - void qed_acquire(BDRVQEDState *s); void qed_release(BDRVQEDState *s); -- cgit v1.2.3