io_u: residiual size should be unsigned long long
authorJeff Furlong <jeff.furlong@wdc.com>
Mon, 20 Aug 2018 23:25:29 +0000 (23:25 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Aug 2018 15:16:09 +0000 (09:16 -0600)
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 <axboe@kernel.dk>
io_u.h

diff --git a/io_u.h b/io_u.h
index 9a423b2..2e0fd3f 100644 (file)
--- 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;
 
        /*