summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-11-07 09:15:45 +0100
committerJens Axboe <axboe@kernel.dk>2012-11-07 09:15:45 +0100
commit9c6f63166eaecc13e4b2ca1d80cc1b5e6185fd43 (patch)
tree2bd84a0d5f7e5404dbe9b4e1649eae2e8ee0615d /file.h
parent39ab7da23768081db50b0026e0c2a8e38752e7a4 (diff)
downloadfio-9c6f63166eaecc13e4b2ca1d80cc1b5e6185fd43.tar.gz
fio-9c6f63166eaecc13e4b2ca1d80cc1b5e6185fd43.tar.bz2
Make the zipf/pareto state per file
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'file.h')
-rw-r--r--file.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/file.h b/file.h
index 42fd58c8..38e9d0d4 100644
--- a/file.h
+++ b/file.h
@@ -5,6 +5,7 @@
#include "compiler/compiler.h"
#include "io_ddir.h"
#include "flist.h"
+#include "lib/zipf.h"
/*
* The type of object we are working on
@@ -112,6 +113,11 @@ struct fio_file {
unsigned long last_free_lookup;
unsigned failed_rands;
+ /*
+ * Used for zipf random distribution
+ */
+ struct zipf_state zipf;
+
int references;
enum fio_file_flags flags;