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

Next file: linux/fs/autofs/inode.c
Previous file: linux/fs/autofs/autofs_i.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/autofs/dir.c linux/fs/autofs/dir.c
@@ -42,13 +42,12 @@
 	return NULL;
 }
 
-static struct file_operations autofs_dir_operations = {
+struct file_operations autofs_dir_operations = {
+	read:		generic_read_dir,
 	readdir:	autofs_dir_readdir,
 };
 
 struct inode_operations autofs_dir_inode_operations = {
-	&autofs_dir_operations,	/* file operations */
-	NULL,			/* create */
-	autofs_dir_lookup,	/* lookup */
+	lookup:		autofs_dir_lookup,
 };
 

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