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

!4628 fs:/dcache.c: fix negative dentry flag warning in dentry_free

parents 549f97e6 6a72dd05
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -682,6 +682,10 @@ static inline bool limit_negative_dentry(struct dentry *dentry)
{
	struct dentry *parent;

	/* The dentry is now unrecoverably dead, shuoldn't limit */
	if (unlikely(dentry->d_lockref.count < 0))
		return false;

	parent = dentry->d_parent;
	if (unlikely(!parent))
		return false;