diff --git a/test/unit/lib/reduce/reduce.c/reduce_ut.c b/test/unit/lib/reduce/reduce.c/reduce_ut.c index 739c50b8e8..2207eef824 100644 --- a/test/unit/lib/reduce/reduce.c/reduce_ut.c +++ b/test/unit/lib/reduce/reduce.c/reduce_ut.c @@ -221,8 +221,10 @@ init_failure(void) } static void -backing_dev_readv(struct spdk_reduce_backing_dev *backing_dev, struct iovec *iov, int iovcnt, - uint64_t lba, uint32_t lba_count, struct spdk_reduce_vol_cb_args *args) +backing_dev_readv_execute(struct spdk_reduce_backing_dev *backing_dev, + struct iovec *iov, int iovcnt, + uint64_t lba, uint32_t lba_count, + struct spdk_reduce_vol_cb_args *args) { char *offset; int i; @@ -236,8 +238,17 @@ backing_dev_readv(struct spdk_reduce_backing_dev *backing_dev, struct iovec *iov } static void -backing_dev_writev(struct spdk_reduce_backing_dev *backing_dev, struct iovec *iov, int iovcnt, - uint64_t lba, uint32_t lba_count, struct spdk_reduce_vol_cb_args *args) +backing_dev_readv(struct spdk_reduce_backing_dev *backing_dev, struct iovec *iov, int iovcnt, + uint64_t lba, uint32_t lba_count, struct spdk_reduce_vol_cb_args *args) +{ + backing_dev_readv_execute(backing_dev, iov, iovcnt, lba, lba_count, args); +} + +static void +backing_dev_writev_execute(struct spdk_reduce_backing_dev *backing_dev, + struct iovec *iov, int iovcnt, + uint64_t lba, uint32_t lba_count, + struct spdk_reduce_vol_cb_args *args) { char *offset; int i; @@ -251,8 +262,16 @@ backing_dev_writev(struct spdk_reduce_backing_dev *backing_dev, struct iovec *io } static void -backing_dev_unmap(struct spdk_reduce_backing_dev *backing_dev, - uint64_t lba, uint32_t lba_count, struct spdk_reduce_vol_cb_args *args) +backing_dev_writev(struct spdk_reduce_backing_dev *backing_dev, struct iovec *iov, int iovcnt, + uint64_t lba, uint32_t lba_count, struct spdk_reduce_vol_cb_args *args) +{ + backing_dev_writev_execute(backing_dev, iov, iovcnt, lba, lba_count, args); +} + +static void +backing_dev_unmap_execute(struct spdk_reduce_backing_dev *backing_dev, + uint64_t lba, uint32_t lba_count, + struct spdk_reduce_vol_cb_args *args) { char *offset; @@ -261,6 +280,13 @@ backing_dev_unmap(struct spdk_reduce_backing_dev *backing_dev, args->cb_fn(args->cb_arg, 0); } +static void +backing_dev_unmap(struct spdk_reduce_backing_dev *backing_dev, + uint64_t lba, uint32_t lba_count, struct spdk_reduce_vol_cb_args *args) +{ + backing_dev_unmap_execute(backing_dev, lba, lba_count, args); +} + static void backing_dev_destroy(struct spdk_reduce_backing_dev *backing_dev) {