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

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

diff -u --recursive --new-file v2.1.54/linux/fs/autofs/dir.c linux/fs/autofs/dir.c
@@ -12,9 +12,10 @@
 
 #include "autofs_i.h"
 
-static int autofs_dir_readdir(struct inode *inode, struct file *filp,
+static int autofs_dir_readdir(struct file *filp,
 			       void *dirent, filldir_t filldir)
 {
+	struct inode *inode=filp->f_dentry->d_inode;
 	if (!inode || !S_ISDIR(inode->i_mode))
 		return -ENOTDIR;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov