patch-2.4.19 linux-2.4.19/fs/autofs4/root.c

Next file: linux-2.4.19/fs/bad_inode.c
Previous file: linux-2.4.19/fs/autofs4/inode.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/fs/autofs4/root.c linux-2.4.19/fs/autofs4/root.c
@@ -27,16 +27,15 @@
 static struct dentry *autofs4_root_lookup(struct inode *,struct dentry *);
 
 struct file_operations autofs4_root_operations = {
+	open:		dcache_dir_open,
+	release:	dcache_dir_close,
+	llseek:		dcache_dir_lseek,
 	read:		generic_read_dir,
 	readdir:	dcache_readdir,
+	fsync:		dcache_dir_fsync,
 	ioctl:		autofs4_root_ioctl,
 };
 
-struct file_operations autofs4_dir_operations = {
-	read:		generic_read_dir,
-	readdir:	dcache_readdir,
-};
-
 struct inode_operations autofs4_root_inode_operations = {
 	lookup:		autofs4_root_lookup,
 	unlink:		autofs4_dir_unlink,

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