projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add .travis.yml
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index 3299f2907af47bb3e6d7b59d2c35aad004509df2..ea08c927f72e1b9d96e2ae05d5a1eb8fba122b9c 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-177,7
+177,7
@@
bail:
/*
* Generate a value, v, between 1 and 100, both inclusive
*/
/*
* Generate a value, v, between 1 and 100, both inclusive
*/
- v = rand_between(&td->zone_state, 1, 100);
+ v = rand
32
_between(&td->zone_state, 1, 100);
zsi = &td->zone_state_index[ddir][v - 1];
stotal = zsi->size_perc_prev;
zsi = &td->zone_state_index[ddir][v - 1];
stotal = zsi->size_perc_prev;
@@
-279,7
+279,7
@@
static bool should_do_random(struct thread_data *td, enum fio_ddir ddir)
if (td->o.perc_rand[ddir] == 100)
return true;
if (td->o.perc_rand[ddir] == 100)
return true;
- v = rand_between(&td->seq_rand_state[ddir], 1, 100);
+ v = rand
32
_between(&td->seq_rand_state[ddir], 1, 100);
return v <= td->o.perc_rand[ddir];
}
return v <= td->o.perc_rand[ddir];
}
@@
-601,7
+601,7
@@
static inline enum fio_ddir get_rand_ddir(struct thread_data *td)
{
unsigned int v;
{
unsigned int v;
- v = rand_between(&td->rwmix_state, 1, 100);
+ v = rand
32
_between(&td->rwmix_state, 1, 100);
if (v <= td->o.rwmix[DDIR_READ])
return DDIR_READ;
if (v <= td->o.rwmix[DDIR_READ])
return DDIR_READ;
@@
-1964,7
+1964,7
@@
static struct frand_state *get_buf_state(struct thread_data *td)
return &td->buf_state;
}
return &td->buf_state;
}
- v = rand_between(&td->dedupe_state, 1, 100);
+ v = rand
32
_between(&td->dedupe_state, 1, 100);
if (v <= td->o.dedupe_percentage)
return &td->buf_state_prev;
if (v <= td->o.dedupe_percentage)
return &td->buf_state_prev;