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

Next file: linux/drivers/block/swim3.c
Previous file: linux/drivers/block/ps2esdi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.37/linux/drivers/block/rd.c linux/drivers/block/rd.c
@@ -379,18 +379,10 @@
 	return 0;
 }
 
-static struct file_operations fd_fops = {
-	NULL,		/* lseek - default */
-	block_read,	/* read - block dev read */
-	block_write,	/* write - block dev write */
-	NULL,		/* readdir - not here! */
-	NULL,		/* poll */
-	rd_ioctl, 	/* ioctl */
-	NULL,		/* mmap */
-	rd_open,	/* open */
-	NULL,		/* flush */
-	rd_release,	/* module needs to decrement use count */
-	block_fsync	/* fsync */ 
+static struct block_device_operations fd_fops = {
+	open:		rd_open,
+	release:	rd_release,
+	ioctl:		rd_ioctl,
 };
 
 /* Before freeing the module, invalidate all of the protected buffers! */

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