summaryrefslogtreecommitdiff
path: root/io_ddir.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-12-15 09:38:43 -0700
committerMohamad Ayyash <mkayyash@google.com>2015-03-06 17:58:08 -0800
commitd55dd0413b5f2df5e637c9c6e752b4272e4a1e5f (patch)
tree204df097b89766bccc95ad97a6f52f40f561d465 /io_ddir.h
parentaa31de7d76f05dae6b015eb882c98a816c1a4b5f (diff)
downloadfio-d55dd0413b5f2df5e637c9c6e752b4272e4a1e5f.tar.gz
file: unionize lfsr/randommap
We only use one of them, add file flags to distinguish between the two. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'io_ddir.h')
-rw-r--r--io_ddir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_ddir.h b/io_ddir.h
index 269768ec..b16a6b9b 100644
--- a/io_ddir.h
+++ b/io_ddir.h
@@ -42,7 +42,7 @@ enum td_ddir {
#define td_trim(td) ((td)->o.td_ddir & TD_DDIR_TRIM)
#define td_rw(td) (((td)->o.td_ddir & TD_DDIR_RW) == TD_DDIR_RW)
#define td_random(td) ((td)->o.td_ddir & TD_DDIR_RAND)
-#define file_randommap(td, f) (!(td)->o.norandommap && (f)->io_axmap)
+#define file_randommap(td, f) (!(td)->o.norandommap && fio_file_axmap((f)))
static inline int ddir_sync(enum fio_ddir ddir)
{