projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Random IO fixes
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index 7890a87099c26f7d5802f9a0479e8ddc6d768bad..a963441a9d3e6baabf4e312146638d90cb46f708 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-118,7
+118,7
@@
static int get_next_rand_offset(struct thread_data *td, struct fio_file *f,
/*
* calculate map offset and chec if it's free
*/
- rb = *b
+ (f->file_offset / td->o.min_bs[ddir])
;
+ rb = *b;
if (random_map_free(td, f, rb))
return 0;