From 51b6996ea57913166a7cd5d777d1c1647a65731b Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 18 Feb 2008 14:14:53 +0100 Subject: [PATCH] Fix typo in mark_random_map() Signed-off-by: Jens Axboe --- io_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1