commit | d55dd0413b5f2df5e637c9c6e752b4272e4a1e5f | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Mon Dec 15 09:38:43 2014 -0700 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:58:08 2015 -0800 |
tree | 204df097b89766bccc95ad97a6f52f40f561d465 | |
parent | aa31de7d76f05dae6b015eb882c98a816c1a4b5f [diff] [blame] |
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>
diff --git a/io_u.c b/io_u.c index efbcea9..23a9e4a 100644 --- a/io_u.c +++ b/io_u.c
@@ -100,6 +100,8 @@ } else { uint64_t off = 0; + assert(fio_file_lfsr(f)); + if (lfsr_next(&f->lfsr, &off)) return 1;