From 67778e88b56f599cc43afbf471eecf179d3c98b1 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 15 May 2008 09:20:08 +0200 Subject: [PATCH] Fix off-by-one in last_block() Signed-off-by: Jens Axboe --- io_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /* -- 2.25.1