patch-2.3.48 linux/fs/bad_inode.c

Next file: linux/fs/bfs/dir.c
Previous file: linux/fs/autofs4/root.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/bad_inode.c linux/fs/bad_inode.c
@@ -47,21 +47,20 @@
 
 struct inode_operations bad_inode_ops =
 {
-	&bad_file_ops,		/* default file operations */
-	EIO_ERROR,		/* create */
-	EIO_ERROR,		/* lookup */
-	EIO_ERROR,		/* link */
-	EIO_ERROR,		/* unlink */
-	EIO_ERROR,		/* symlink */
-	EIO_ERROR,		/* mkdir */
-	EIO_ERROR,		/* rmdir */
-	EIO_ERROR,		/* mknod */
-	EIO_ERROR,		/* rename */
-	EIO_ERROR,		/* readlink */
-	bad_follow_link,	/* follow_link */
-	EIO_ERROR,		/* truncate */
-	EIO_ERROR,		/* permission */
-	EIO_ERROR		/* revalidate */
+	create:		EIO_ERROR,
+	lookup:		EIO_ERROR,
+	link:		EIO_ERROR,
+	unlink:		EIO_ERROR,
+	symlink:	EIO_ERROR,
+	mkdir:		EIO_ERROR,
+	rmdir:		EIO_ERROR,
+	mknod:		EIO_ERROR,
+	rename:		EIO_ERROR,
+	readlink:	EIO_ERROR,
+	follow_link:	bad_follow_link,
+	truncate:	EIO_ERROR,
+	permission:	EIO_ERROR,
+	revalidate:	EIO_ERROR,
 };
 
 
@@ -78,6 +77,7 @@
 	inode->i_mode = S_IFREG;
 	inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
 	inode->i_op = &bad_inode_ops;	
+	inode->i_fop = &bad_file_ops;	
 }
 
 /*

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