Inc block in mark_random_map()
authorJens Axboe <jens.axboe@oracle.com>
Mon, 2 Jun 2008 08:09:43 +0000 (10:09 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 2 Jun 2008 08:09:43 +0000 (10:09 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c

diff --git a/io_u.c b/io_u.c
index f2fa859c4bcb4556fa58338b3a7cc6d90f6fdbcd..c33dddf66f7c1337ed9157ffe5ad52628703945d 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -78,6 +78,7 @@ static void mark_random_map(struct thread_data *td, struct io_u *io_u)
                f->file_map[idx] |= mask;
                nr_blocks -= this_blocks;
                blocks += this_blocks;
+               block += this_blocks;
        }
 
        if ((blocks * min_bs) < io_u->buflen)