patch-2.1.55 linux/fs/sysv/dir.c
Next file: linux/fs/sysv/ialloc.c
Previous file: linux/fs/smbfs/sock.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Sun Sep 7 14:00:24 1997
- Orig file:
v2.1.54/linux/fs/sysv/dir.c
- Orig date:
Thu Jul 17 10:06:08 1997
diff -u --recursive --new-file v2.1.54/linux/fs/sysv/dir.c linux/fs/sysv/dir.c
@@ -27,7 +27,7 @@
return -EISDIR;
}
-static int sysv_readdir(struct inode *, struct file *, void *, filldir_t);
+static int sysv_readdir(struct file *, void *, filldir_t);
static struct file_operations sysv_dir_operations = {
NULL, /* lseek - default */
@@ -65,9 +65,9 @@
NULL /* permission */
};
-static int sysv_readdir(struct inode * inode, struct file * filp,
- void * dirent, filldir_t filldir)
+static int sysv_readdir(struct file * filp, void * dirent, filldir_t filldir)
{
+ struct inode *inode = filp->f_dentry->d_inode;
struct super_block * sb;
unsigned int offset,i;
struct buffer_head * bh;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov