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

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

parents 4c0bb20d 37da3bb9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -654,6 +654,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;