Return-Path: Received: from g9t5009.houston.hpe.com ([15.241.48.73]:53265 "EHLO g9t5009.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941587AbcLVUrr (ORCPT ); Thu, 22 Dec 2016 15:47:47 -0500 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g9t5009.houston.hpe.com (Postfix) with ESMTP id 920FF80 for ; Thu, 22 Dec 2016 20:47:46 +0000 (UTC) From: Robert Elliott Subject: [PATCH v2 05/12] Fix unit_base kb_base mixup in thread option conversion functions Date: Thu, 22 Dec 2016 14:50:44 -0600 Message-Id: <20161222205051.4677-5-elliott@hpe.com> In-Reply-To: <20161222205051.4677-1-elliott@hpe.com> References: <20161222060853.64104-1-elliott@hpe.com> <20161222205051.4677-1-elliott@hpe.com> Sender: fio-owner@vger.kernel.org List-Id: fio@vger.kernel.org To: fio@vger.kernel.org Cc: Robert Elliott Don't set unit_base, which is 1 or 8, to kb_base, which is 1000 or 1024, during the convert functions used by the initial cconv test. --- cconv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cconv.c b/cconv.c index 336805b..0c11629 100644 --- a/cconv.c +++ b/cconv.c @@ -88,7 +88,7 @@ void convert_thread_options_to_cpu(struct thread_options *o, o->td_ddir = le32_to_cpu(top->td_ddir); o->rw_seq = le32_to_cpu(top->rw_seq); o->kb_base = le32_to_cpu(top->kb_base); - o->unit_base = le32_to_cpu(top->kb_base); + o->unit_base = le32_to_cpu(top->unit_base); o->ddir_seq_nr = le32_to_cpu(top->ddir_seq_nr); o->ddir_seq_add = le64_to_cpu(top->ddir_seq_add); o->iodepth = le32_to_cpu(top->iodepth); @@ -336,7 +336,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top, top->td_ddir = cpu_to_le32(o->td_ddir); top->rw_seq = cpu_to_le32(o->rw_seq); top->kb_base = cpu_to_le32(o->kb_base); - top->unit_base = cpu_to_le32(o->kb_base); + top->unit_base = cpu_to_le32(o->unit_base); top->ddir_seq_nr = cpu_to_le32(o->ddir_seq_nr); top->iodepth = cpu_to_le32(o->iodepth); top->iodepth_low = cpu_to_le32(o->iodepth_low); -- 2.9.3