mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:10:53 +07:00
[PATCH] VFS: extra check inside dentry_unhash()
d_count check after dget() is always true. Signed-off-by: Vasily Averin <vvs@sw.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
5ac29e62be
commit
dc168427e6
@ -1998,7 +1998,6 @@ asmlinkage long sys_mkdir(const char __user *pathname, int mode)
|
||||
void dentry_unhash(struct dentry *dentry)
|
||||
{
|
||||
dget(dentry);
|
||||
if (atomic_read(&dentry->d_count))
|
||||
shrink_dcache_parent(dentry);
|
||||
spin_lock(&dcache_lock);
|
||||
spin_lock(&dentry->d_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user