From: Bruce Cran Date: Sun, 13 Jan 2013 17:21:58 +0000 (+0000) Subject: Fix typo (READ/DDIR_READ). X-Git-Tag: fio-2.0.14~122 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=6d68b99712c112fde6dedda6e6e24af3e9552d0e;ds=sidebyside Fix typo (READ/DDIR_READ). Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index 87b80191..3de04ef0 100644 --- a/io_u.c +++ b/io_u.c @@ -182,7 +182,7 @@ static int get_next_rand_offset(struct thread_data *td, struct fio_file *f, * If sort not enabled, or not a pure random read workload without * any stored write metadata, just return a random offset */ - if (!td->o.verifysort_nr || !(ddir == READ && td->o.do_verify && + if (!td->o.verifysort_nr || !(ddir == DDIR_READ && td->o.do_verify && td->o.verify != VERIFY_NONE && td_random(td))) return get_off_from_method(td, f, ddir, b); @@ -292,7 +292,7 @@ static int get_next_block(struct thread_data *td, struct io_u *io_u, ret = 1; } } - + if (!ret) { if (offset != -1ULL) io_u->offset = offset;