lib/reduce: avoid extra operation in write path

Change-Id: I92355d3deb25f818e6d4c7a72d2f4fd45e6879ac
Signed-off-by: paul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457523
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
paul luse 2019-06-10 16:02:40 -04:00 committed by Ben Walker
parent 6708b70938
commit 12f7aeb4ce

View File

@ -1377,7 +1377,7 @@ spdk_reduce_vol_writev(struct spdk_reduce_vol *vol,
req->iov = iov; req->iov = iov;
req->iovcnt = iovcnt; req->iovcnt = iovcnt;
req->offset = offset; req->offset = offset;
req->logical_map_index = offset / vol->logical_blocks_per_chunk; req->logical_map_index = logical_map_index;
req->length = length; req->length = length;
req->cb_fn = cb_fn; req->cb_fn = cb_fn;
req->cb_arg = cb_arg; req->cb_arg = cb_arg;