Commit 696199f8 authored by Al Viro's avatar Al Viro

don't do blind d_drop() in nfs_prime_dcache()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e23739b4
...@@ -450,7 +450,8 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry) ...@@ -450,7 +450,8 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry)
nfs_refresh_inode(dentry->d_inode, entry->fattr); nfs_refresh_inode(dentry->d_inode, entry->fattr);
goto out; goto out;
} else { } else {
d_drop(dentry); if (d_invalidate(dentry) != 0)
goto out;
dput(dentry); dput(dentry);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment