From: Jens Axboe Date: Thu, 15 May 2008 07:20:08 +0000 (+0200) Subject: Fix off-by-one in last_block() X-Git-Tag: fio-1.21-rc1~18 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=67778e88b56f599cc43afbf471eecf179d3c98b1;p=fio.git Fix off-by-one in last_block() Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index 0ba48416..ec348781 100644 --- a/io_u.c +++ b/io_u.c @@ -83,7 +83,7 @@ static inline unsigned long long last_block(struct thread_data *td, if (!max_blocks) return 0; - return max_blocks - 1; + return max_blocks; } /*