Unverified Commit 97b2e4ba authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15696 fs/dcache: fix bad unlock balance in shrink_dentry_list()

parents e2ff8423 09c81391
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1174,7 +1174,7 @@ static bool shrink_lock_dentry(struct dentry *dentry)
		goto out;
	}
	spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
	if (likely(!dentry->d_lockref.count))
	if (likely(!dentry->d_lockref.count && inode == dentry->d_inode))
		return true;
	spin_unlock(&parent->d_lock);
out: