projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 'null' perf test
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index 51da223d3e02ab194c45a77e6249870d9d0a62d4..6a53bdaab074fcf9660c6e25e08c19408bd0dca2 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-249,7
+249,12
@@
static int get_next_seq_block(struct thread_data *td, struct fio_file *f,
assert(ddir_rw(ddir));
if (f->last_pos < f->real_file_size) {
assert(ddir_rw(ddir));
if (f->last_pos < f->real_file_size) {
- *b = (f->last_pos - f->file_offset) / td->o.min_bs[ddir];
+ unsigned long long pos = f->last_pos - f->file_offset;
+
+ if (pos)
+ pos += td->o.ddir_seq_add;
+
+ *b = pos / td->o.min_bs[ddir];
return 0;
}
return 0;
}