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

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

parents d254d093 0ad8c416
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -643,6 +643,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;