patch-2.3.48 linux/fs/qnx4/dir.c

Next file: linux/fs/qnx4/file.c
Previous file: linux/fs/proc/root.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/qnx4/dir.c linux/fs/qnx4/dir.c
@@ -78,21 +78,19 @@
 	return 0;
 }
 
-static struct file_operations qnx4_dir_operations =
+struct file_operations qnx4_dir_operations =
 {
-	readdir:		qnx4_readdir,
-	fsync:			file_fsync,
+	read:		generic_read_dir,
+	readdir:	qnx4_readdir,
+	fsync:		file_fsync,
 };
 
 struct inode_operations qnx4_dir_inode_operations =
 {
-	default_file_ops:	&qnx4_dir_operations,
+	lookup:		qnx4_lookup,
 #ifdef CONFIG_QNX4FS_RW
-	create:			qnx4_create,
-#endif
-	lookup:			qnx4_lookup,
-#ifdef CONFIG_QNX4FS_RW
-	unlink:			qnx4_unlink,
-	rmdir:			qnx4_rmdir,
+	create:		qnx4_create,
+	unlink:		qnx4_unlink,
+	rmdir:		qnx4_rmdir,
 #endif
 };

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