patch-2.1.50 linux/fs/nfs/dir.c

Next file: linux/fs/super.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.49/linux/fs/nfs/dir.c linux/fs/nfs/dir.c
@@ -349,6 +349,12 @@
 	return time < max;
 }
 
+static struct dentry_operations nfs_dentry_operations = {
+	nfs_lookup_revalidate,
+	0,			/* d_hash */
+	0,			/* d_compare */
+};
+
 static int nfs_lookup(struct inode *dir, struct dentry * dentry)
 {
 	struct inode *inode;
@@ -380,7 +386,7 @@
 		return error;
 
 	dentry->d_time = jiffies;
-	dentry->d_revalidate = nfs_lookup_revalidate;
+	dentry->d_op = &nfs_dentry_operations;
 	d_add(dentry, inode);
 	return 0;
 }

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