From 2c35c8fbea8b210f8305066e386d74aa102a2ef4 Mon Sep 17 00:00:00 2001 From: paul luse Date: Fri, 9 Aug 2019 14:46:51 -0400 Subject: [PATCH] bdev/compress: re-type and re-name misleading variable name Becomes important in next patch Change-Id: Ida19f0b59c4b841d6f5120f9130e24b57ae91560 Signed-off-by: paul luse Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/464717 Reviewed-by: Broadcom SPDK FC-NVMe CI Reviewed-by: Ben Walker Reviewed-by: Jim Harris Tested-by: SPDK CI Jenkins --- lib/bdev/compress/vbdev_compress.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/bdev/compress/vbdev_compress.c b/lib/bdev/compress/vbdev_compress.c index 648082abbc..970fe6d665 100644 --- a/lib/bdev/compress/vbdev_compress.c +++ b/lib/bdev/compress/vbdev_compress.c @@ -438,8 +438,8 @@ _compress_operation(struct spdk_reduce_backing_dev *backing_dev, struct iovec *s struct rte_mbuf *dst_mbufs[MAX_MBUFS_PER_OP]; uint8_t cdev_id = comp_bdev->device_qp->device->cdev_id; uint64_t total_length = 0; - struct iovec *current_src_iov = NULL; - struct iovec *current_dst_iov = NULL; + uint8_t *current_src_base = NULL; + uint8_t *current_dst_base = NULL; int iov_index; int rc = 0; struct vbdev_comp_op *op_to_queue; @@ -479,14 +479,14 @@ _compress_operation(struct spdk_reduce_backing_dev *backing_dev, struct iovec *s /* Setup src mbufs */ for (iov_index = 0; iov_index < src_iovcnt; iov_index++) { - current_src_iov = src_iovs[iov_index].iov_base; + current_src_base = src_iovs[iov_index].iov_base; total_length += src_iovs[iov_index].iov_len; assert(src_mbufs[iov_index] != NULL); src_mbufs[iov_index]->userdata = reduce_cb_arg; rte_pktmbuf_attach_extbuf(src_mbufs[iov_index], - current_src_iov, - spdk_vtophys((void *)current_src_iov, NULL), + current_src_base, + spdk_vtophys((void *)current_src_base, NULL), src_iovs[iov_index].iov_len, &g_shinfo); rte_pktmbuf_append(src_mbufs[iov_index], src_iovs[iov_index].iov_len); @@ -503,11 +503,11 @@ _compress_operation(struct spdk_reduce_backing_dev *backing_dev, struct iovec *s /* setup dst mbufs, for the current test being used with this code there's only one vector */ for (iov_index = 0; iov_index < dst_iovcnt; iov_index++) { - current_dst_iov = dst_iovs[iov_index].iov_base; + current_dst_base = dst_iovs[iov_index].iov_base; rte_pktmbuf_attach_extbuf(dst_mbufs[iov_index], - current_dst_iov, - spdk_vtophys((void *)current_dst_iov, NULL), + current_dst_base, + spdk_vtophys((void *)current_dst_base, NULL), dst_iovs[iov_index].iov_len, &g_shinfo); rte_pktmbuf_append(dst_mbufs[iov_index], dst_iovs[iov_index].iov_len);