diff options
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 7cd2697f2d32..35b447d79dbe 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 | |||
929 | no_entry: | 929 | no_entry: |
930 | res = d_materialise_unique(dentry, inode); | 930 | res = d_materialise_unique(dentry, inode); |
931 | if (res != NULL) { | 931 | if (res != NULL) { |
932 | struct dentry *parent; | ||
933 | if (IS_ERR(res)) | 932 | if (IS_ERR(res)) |
934 | goto out_unlock; | 933 | goto out_unlock; |
935 | /* Was a directory renamed! */ | ||
936 | parent = dget_parent(res); | ||
937 | if (!IS_ROOT(parent)) | ||
938 | nfs_mark_for_revalidate(parent->d_inode); | ||
939 | dput(parent); | ||
940 | dentry = res; | 934 | dentry = res; |
941 | } | 935 | } |
942 | nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); | 936 | nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); |