patch-2.3.38 linux/drivers/block/nbd.c

Next file: linux/drivers/block/paride/pd.c
Previous file: linux/drivers/block/md.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.37/linux/drivers/block/nbd.c linux/drivers/block/nbd.c
@@ -446,18 +446,11 @@
 	return 0;
 }
 
-static struct file_operations nbd_fops =
+static struct block_device_operations nbd_fops =
 {
-	NULL,			/* lseek - default */
-	block_read,		/* read - general block-dev read */
-	block_write,		/* write - general block-dev write */
-	NULL,			/* readdir - bad */
-	NULL,			/* select */
-	nbd_ioctl,		/* ioctl */
-	NULL,			/* mmap */
-	nbd_open,		/* open */
-	NULL,			/* flush */
-	nbd_release		/* release */
+	open:		nbd_open,
+	release:	nbd_release,
+	ioctl:		nbd_ioctl,
 };
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)