projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
t/axmap: add regression case for recent overlap failure case
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index 9e9dad5a79f15c6f405b26ad16736388149d257c..5221a78c264981c8071f58c0310fa37fdeba4927 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-541,10
+541,8
@@
static unsigned int get_next_buflen(struct thread_data *td, struct io_u *io_u,
r = __rand(&td->bsrange_state[ddir]);
if (!td->o.bssplit_nr[ddir]) {
r = __rand(&td->bsrange_state[ddir]);
if (!td->o.bssplit_nr[ddir]) {
- buflen =
1
+ (unsigned int) ((double) maxbs *
+ buflen =
minbs
+ (unsigned int) ((double) maxbs *
(r / (frand_max + 1.0)));
(r / (frand_max + 1.0)));
- if (buflen < minbs)
- buflen = minbs;
} else {
long long perc = 0;
unsigned int i;
} else {
long long perc = 0;
unsigned int i;