patch-2.3.43 linux/fs/ncpfs/file.c

Next file: linux/fs/ncpfs/inode.c
Previous file: linux/fs/ncpfs/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/fs/ncpfs/file.c linux/fs/ncpfs/file.c
@@ -277,17 +277,11 @@
 
 static struct file_operations ncp_file_operations =
 {
-	NULL,			/* lseek - default */
-	ncp_file_read,		/* read */
-	ncp_file_write,		/* write */
-	NULL,			/* readdir - bad */
-	NULL,			/* poll - default */
-	ncp_ioctl,		/* ioctl */
-	ncp_mmap,		/* mmap */
-	NULL,			/* open */
-	NULL,			/* flush */
-	NULL,			/* release */
-	ncp_fsync,		/* fsync */
+	read:		ncp_file_read,
+	write:		ncp_file_write,
+	ioctl:		ncp_ioctl,
+	mmap:		ncp_mmap,
+	fsync:		ncp_fsync,
 };
 
 struct inode_operations ncp_file_inode_operations =
@@ -304,9 +298,6 @@
 	NULL,			/* rename */
 	NULL,			/* readlink */
 	NULL,			/* follow_link */
-	NULL,			/* get_block */
-	NULL,			/* readpage */
-	NULL,			/* writepage */
 	NULL,			/* truncate */
 	NULL,			/* permission */
 	NULL			/* revalidate */

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