]> err.no Git - linux-2.6/commitdiff
NFS: Remove bogus nfs_mark_for_revalidate() in nfs_lookup
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 1 Oct 2007 17:54:51 +0000 (13:54 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:19:45 +0000 (17:19 -0400)
The parent of the newly materialised dentry has just been revalidated...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c

index 7cd2697f2d32d1e46ce7596f7514ff738c21fb3b..35b447d79dbea1b56507bf1b10644b7aaff40479 100644 (file)
@@ -929,14 +929,8 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, stru
 no_entry:
        res = d_materialise_unique(dentry, inode);
        if (res != NULL) {
-               struct dentry *parent;
                if (IS_ERR(res))
                        goto out_unlock;
-               /* Was a directory renamed! */
-               parent = dget_parent(res);
-               if (!IS_ROOT(parent))
-                       nfs_mark_for_revalidate(parent->d_inode);
-               dput(parent);
                dentry = res;
        }
        nfs_set_verifier(dentry, nfs_save_change_attribute(dir));