From: Markus Pargmann Date: Thu, 2 Apr 2015 08:11:37 +0000 (+0200) Subject: nbd: Fix device bytesize type X-Git-Tag: v4.1-rc1~105^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9c495bb6d8edc719fd23af2ac67de8303cfc1e8;p=platform%2Fkernel%2Flinux-exynos.git nbd: Fix device bytesize type The block subsystem uses loff_t to store the device size. Change the type for nbd_device bytesize to loff_t. Signed-off-by: Markus Pargmann Acked-by: Pavel Machek Signed-off-by: Jens Axboe --- diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 5bc2216..7139c8a 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -54,7 +55,7 @@ struct nbd_device { struct mutex tx_lock; struct gendisk *disk; int blksize; - u64 bytesize; + loff_t bytesize; pid_t pid; /* pid of nbd-client, if attached */ int xmit_timeout; int disconnect; /* a disconnect has been requested by user */