Allow randommap allocation to fail
It's not that critical, so just print a warning and continue
without randommap.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/io_u.c b/io_u.c
index 1e60eee..7a23d2c 100644
--- a/io_u.c
+++ b/io_u.c
@@ -130,7 +130,7 @@
/*
* if we are not maintaining a random map, we are done.
*/
- if (td->o.norandommap)
+ if (!file_randommap(td, f))
return 0;
/*
@@ -416,7 +416,7 @@
/*
* mark entry before potentially trimming io_u
*/
- if (td_random(td) && !td->o.norandommap)
+ if (td_random(td) && file_randommap(td, io_u->file))
mark_random_map(td, io_u);
/*