All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fio: consolidate rand_seed to uint64_t
@ 2014-01-28 21:02 Grant Grundler
  2014-01-28 21:30 ` Jens Axboe
  0 siblings, 1 reply; 7+ messages in thread
From: Grant Grundler @ 2014-01-28 21:02 UTC (permalink / raw)
  To: Jens Axboe
  Cc: FIO List, Puthikorn Voravootivat, Gwendal Grignou, Grant Grundler

csscope showed rand_seed was defined 4 times - each a different type.
While they are used differently, the places where they overlap
should reference the same type. This patch makes three of them the same
as suggested by Jens Axboe.

Signed-off-by: Grant Grundler <grundler@chromium.org>
---
 ioengine.h       | 2 +-
 thread_options.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ioengine.h b/ioengine.h
index 949af91..0756bc7 100644
--- a/ioengine.h
+++ b/ioengine.h
@@ -56,7 +56,7 @@ struct io_u {
 	/*
 	 * Initial seed for generating the buffer contents
 	 */
-	unsigned long rand_seed;
+	uint64_t rand_seed;
 
 	/*
 	 * IO engine state, may be different from above when we get
diff --git a/thread_options.h b/thread_options.h
index 2f807cd..59ddd7e 100644
--- a/thread_options.h
+++ b/thread_options.h
@@ -324,7 +324,7 @@ struct thread_options_pack {
 	uint32_t do_disk_util;
 	uint32_t override_sync;
 	uint32_t rand_repeatable;
-	uint32_t rand_seed;
+	uint64_t rand_seed;
 	uint32_t use_os_rand;
 	uint32_t log_avg_msec;
 	uint32_t norandommap;
-- 
1.8.5.3



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-28 22:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-28 21:02 [PATCH] fio: consolidate rand_seed to uint64_t Grant Grundler
2014-01-28 21:30 ` Jens Axboe
2014-01-28 21:52   ` Grant Grundler
2014-01-28 22:03     ` Jens Axboe
2014-01-28 22:14       ` Grant Grundler
2014-01-28 22:17         ` Jens Axboe
2014-01-28 22:23           ` Grant Grundler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.