diff options
author | Jens Axboe <axboe@fb.com> | 2014-12-15 09:38:43 -0700 |
---|---|---|
committer | Mohamad Ayyash <mkayyash@google.com> | 2015-03-06 17:58:08 -0800 |
commit | d55dd0413b5f2df5e637c9c6e752b4272e4a1e5f (patch) | |
tree | 204df097b89766bccc95ad97a6f52f40f561d465 /io_ddir.h | |
parent | aa31de7d76f05dae6b015eb882c98a816c1a4b5f (diff) | |
download | fio-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |