From: Jens Axboe Date: Mon, 18 Feb 2008 13:14:53 +0000 (+0100) Subject: Fix typo in mark_random_map() X-Git-Tag: fio-1.18.1~1 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=51b6996ea57913166a7cd5d777d1c1647a65731b Fix typo in mark_random_map() Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index a56a6f2d..9ab33f39 100644 --- a/io_u.c +++ b/io_u.c @@ -55,7 +55,7 @@ static void mark_random_map(struct thread_data *td, struct io_u *io_u) * If we have a mixed random workload, we may * encounter blocks we already did IO to. */ - if (!td->o.ddir_nr == 1 && !random_map_free(td, f, block)) + if ((td->o.ddir_nr == 1) && !random_map_free(td, f, block)) break; idx = RAND_MAP_IDX(td, f, block);