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

Next file: linux/fs/hpfs/hpfs_fs.c
Previous file: linux/fs/ext2/truncate.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.54/linux/fs/fat/dir.c linux/fs/fat/dir.c
@@ -316,11 +316,11 @@
 }
 
 int fat_readdir(
-	struct inode *inode,
 	struct file *filp,
 	void *dirent,
 	filldir_t filldir)
 {
+	struct inode *inode = filp->f_dentry->d_inode;
 	return fat_readdirx(inode, filp, dirent, fat_filldir, filldir,
 			    0, 1, 0);
 }

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