X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=io_u.c;h=ed8e84aba41f2a5c48e7d2cc66c79efd849a5c75;hb=403bb450a8b48885b05d235ef6bf613561c94bbf;hp=375413f4b6d230e38432484179327736ae2de060;hpb=22bcb265833f263facd58bcef3d8a159c554460e;p=fio.git diff --git a/io_u.c b/io_u.c index 375413f4..ed8e84ab 100644 --- a/io_u.c +++ b/io_u.c @@ -552,9 +552,9 @@ static unsigned int __get_next_buflen(struct thread_data *td, struct io_u *io_u, if (!io_u_fits(td, io_u, minbs)) return 0; - frand_max = rand_max(&td->bsrange_state); + frand_max = rand_max(&td->bsrange_state[ddir]); do { - r = __rand(&td->bsrange_state); + r = __rand(&td->bsrange_state[ddir]); if (!td->o.bssplit_nr[ddir]) { buflen = 1 + (unsigned int) ((double) maxbs * @@ -1602,7 +1602,7 @@ static void small_content_scramble(struct io_u *io_u) unsigned int i, nr_blocks = io_u->buflen / 512; uint64_t boffset; unsigned int offset; - void *p, *end; + char *p, *end; if (!nr_blocks) return;