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

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

parents 75db7d4f 3d0b6504
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1238,7 +1238,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: