mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
don't do blind d_drop() in nfs_prime_dcache()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e23739b4ad
commit
696199f8cc
@ -450,7 +450,8 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry)
|
||||
nfs_refresh_inode(dentry->d_inode, entry->fattr);
|
||||
goto out;
|
||||
} else {
|
||||
d_drop(dentry);
|
||||
if (d_invalidate(dentry) != 0)
|
||||
goto out;
|
||||
dput(dentry);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user