mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 10:26:09 +00:00
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 <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
cf8ba45e05
commit
3258b4fa55
@ -929,14 +929,8 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, stru
|
|||||||
no_entry:
|
no_entry:
|
||||||
res = d_materialise_unique(dentry, inode);
|
res = d_materialise_unique(dentry, inode);
|
||||||
if (res != NULL) {
|
if (res != NULL) {
|
||||||
struct dentry *parent;
|
|
||||||
if (IS_ERR(res))
|
if (IS_ERR(res))
|
||||||
goto out_unlock;
|
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;
|
dentry = res;
|
||||||
}
|
}
|
||||||
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
|
nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user