Fix typo in mark_random_map()
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index a56a6f2d32af8d5a49ba54bd186ba9ed1e235c5f..9ab33f39da6cec4eb2fb2ae3c29e961660020438 100644 (file)
--- 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);