Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8462caa authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

fs: use hlist_unhashed



Use hlist_unhashed() instead of opencoded equivalent.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 07a154b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ static void d_free(struct dentry *dentry)
	if (dentry->d_op && dentry->d_op->d_release)
		dentry->d_op->d_release(dentry);
	/* if dentry was never inserted into hash, immediate free is OK */
	if (dentry->d_hash.pprev == NULL)
	if (hlist_unhashed(&dentry->d_hash))
		__d_free(dentry);
	else
		call_rcu(&dentry->d_u.d_rcu, d_callback);