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 9a423b24e5d9c44dc7fa7fbf769dc44baa75b01b..2e0fd3fe789b49c46345bf184a7736fc83ac0d49 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;
 
        /*