patch-2.1.55 linux/fs/nfs/dir.c
Next file: linux/fs/nfsd/vfs.c
Previous file: linux/fs/ncpfs/sock.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Sun Sep 7 14:00:24 1997
- Orig file:
v2.1.54/linux/fs/nfs/dir.c
- Orig date:
Wed Sep 3 20:52:43 1997
diff -u --recursive --new-file v2.1.54/linux/fs/nfs/dir.c linux/fs/nfs/dir.c
@@ -48,7 +48,7 @@
static int nfs_dir_open(struct inode * inode, struct file * file);
static long nfs_dir_read(struct inode *, struct file *, char *, unsigned long);
-static int nfs_readdir(struct inode *, struct file *, void *, filldir_t);
+static int nfs_readdir(struct file *, void *, filldir_t);
static int nfs_lookup(struct inode *, struct dentry *);
static int nfs_create(struct inode *, struct dentry *, int);
static int nfs_mkdir(struct inode *, struct dentry *, int);
@@ -121,9 +121,7 @@
* page cache (may require some fiddling for rsize < PAGE_SIZE).
*/
-static int
-nfs_readdir(struct inode *inode, struct file *filp, void *dirent,
- filldir_t filldir)
+static int nfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
{
static struct wait_queue *readdir_wait = NULL;
struct wait_queue **waitp = NULL;
@@ -133,6 +131,7 @@
u32 cookie;
int ismydir, result;
int i, j, index = 0;
+ struct inode *inode = filp->f_dentry->d_inode;
dfprintk(VFS, "NFS: nfs_readdir(%x/%ld)\n", inode->i_dev, inode->i_ino);
if (!inode || !S_ISDIR(inode->i_mode)) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov