From: Trond Myklebust Date: Mon, 1 Oct 2007 17:54:51 +0000 (-0400) Subject: NFS: Remove bogus nfs_mark_for_revalidate() in nfs_lookup X-Git-Tag: v2.6.24-rc1~1285^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3258b4fa552c4f994b5e6490a8ad88f5d7e0e648;p=platform%2Fkernel%2Flinux-3.10.git NFS: Remove bogus nfs_mark_for_revalidate() in nfs_lookup The parent of the newly materialised dentry has just been revalidated... Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 7cd2697..35b447d 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -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));