X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=a4802fec66ead13be34fe7c6bc0429978f695497;hp=a2c583df26bb43943d7bda1ebf05e6999d9432b6;hb=e65a950ab73d7d91f267ad7f7b084d94e266fcb0;hpb=e12d2800f811cb64d376cfdaed9a1257f3fa9c99;ds=sidebyside diff --git a/io_u.c b/io_u.c index a2c583df..a4802fec 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;