From daa899130fdd40f5df720ee54980b00b07903dc4 Mon Sep 17 00:00:00 2001 From: Jeff Furlong Date: Mon, 20 Aug 2018 23:25:29 +0000 Subject: [PATCH] io_u: residiual size should be unsigned long long If we target a number of bytes of IO and keep subtracting a xfer_buflen, we need to ensure the residual length is of the same size. Signed-off-by: Jens Axboe --- io_u.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_u.h b/io_u.h index 9a423b24..2e0fd3fe 100644 --- a/io_u.h +++ b/io_u.h @@ -75,7 +75,7 @@ struct io_u { struct io_piece *ipo; - unsigned int resid; + unsigned long long resid; unsigned int error; /* -- 2.25.1