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

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

diff -u --recursive --new-file v2.3.37/linux/drivers/block/loop.c linux/drivers/block/loop.c
@@ -668,17 +668,10 @@
 	return err;
 }
 
-static struct file_operations lo_fops = {
-	NULL,			/* lseek - default */
-	block_read,		/* read - general block-dev read */
-	block_write,		/* write - general block-dev write */
-	NULL,			/* readdir - bad */
-	NULL,			/* poll */
-	lo_ioctl,		/* ioctl */
-	NULL,			/* mmap */
-	lo_open,		/* open */
-	NULL,			/* flush */
-	lo_release		/* release */
+static struct block_device_operations lo_fops = {
+	open:		lo_open,
+	release:	lo_release,
+	ioctl:		lo_ioctl,
 };
 
 /*

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