projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Better accommodate random writes larger than blockalign
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index 5971d78b635e6d31c352f187042cc238c0fd7428..77a3abf75437e7e27290cf0e32fc4db7cb3bc7ce 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-68,6
+68,9
@@
static uint64_t last_block(struct thread_data *td, struct fio_file *f,
if (td->o.zone_range)
max_size = td->o.zone_range;
+ if (td->o.min_bs[ddir] > td->o.ba[ddir])
+ max_size -= td->o.min_bs[ddir] - td->o.ba[ddir];
+
max_blocks = max_size / (uint64_t) td->o.ba[ddir];
if (!max_blocks)
return 0;