patch-2.1.55 linux/fs/ufs/ufs_dir.c

Next file: linux/fs/umsdos/emd.c
Previous file: linux/fs/sysv/truncate.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.54/linux/fs/ufs/ufs_dir.c linux/fs/ufs/ufs_dir.c
@@ -17,9 +17,9 @@
  * This is blatantly stolen from ext2fs
  */
 static int
-ufs_readdir (struct inode * inode, struct file * filp, void * dirent,
-	     filldir_t filldir)
+ufs_readdir (struct file * filp, void * dirent, filldir_t filldir)
 {
+	struct inode *inode = filp->f_dentry->d_inode;
 	int error = 0;
 	unsigned long offset, lblk, blk;
 	int i, stored;

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