nbd: Fix device bytesize type
authorMarkus Pargmann <mpa@pengutronix.de>
Thu, 2 Apr 2015 08:11:37 +0000 (10:11 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:39:21 +0000 (12:39 -0600)
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 <mpa@pengutronix.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c

index 5bc221693304c56630b0b8e837776509326988bc..7139c8aae7a12e70a786e34f3d8771ff15d06d95 100644 (file)
@@ -32,6 +32,7 @@
 #include <net/sock.h>
 #include <linux/net.h>
 #include <linux/kthread.h>
+#include <linux/types.h>
 
 #include <asm/uaccess.h>
 #include <asm/types.h>
@@ -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 */
This page took 0.043528 seconds and 5 git commands to generate.