X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=io_u.c;h=273cc91cb621176b1bdb50da0261b0313ef95a1b;hb=3c3ed070502bbfec387ded2c43d5e4559ca24a63;hp=a4f378d811dd87df2481db8756ee463306e44f9e;hpb=5570ec6a71be9adde6d5f7a6114ba7c9b4a0d680;p=fio.git diff --git a/io_u.c b/io_u.c index a4f378d8..273cc91c 100644 --- a/io_u.c +++ b/io_u.c @@ -78,7 +78,7 @@ static void mark_random_map(struct thread_data *td, struct io_u *io_u) mask = -1UL; else mask = ((1UL << this_blocks) - 1) << bit; - + if (!(f->file_map[idx] & mask)) break; @@ -310,7 +310,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; @@ -1427,7 +1427,7 @@ static void io_completed(struct thread_data *td, struct io_u *io_u, io_u_log_error(td, io_u); } if (icd->error && td_non_fatal_error(icd->error) && - (td->o.continue_on_error & td_error_type(io_u->ddir, icd->error))) { + (td->o.continue_on_error & td_error_type(io_u->ddir, icd->error))) { /* * If there is a non_fatal error, then add to the error count * and clear all the errors.