提交 e8462caa 编写于 作者: A Akinobu Mita 提交者: Linus Torvalds

fs: use hlist_unhashed

Use hlist_unhashed() instead of opencoded equivalent.
Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 07a154b2
...@@ -89,7 +89,7 @@ static void d_free(struct dentry *dentry) ...@@ -89,7 +89,7 @@ static void d_free(struct dentry *dentry)
if (dentry->d_op && dentry->d_op->d_release) if (dentry->d_op && dentry->d_op->d_release)
dentry->d_op->d_release(dentry); dentry->d_op->d_release(dentry);
/* if dentry was never inserted into hash, immediate free is OK */ /* 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); __d_free(dentry);
else else
call_rcu(&dentry->d_u.d_rcu, d_callback); call_rcu(&dentry->d_u.d_rcu, d_callback);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册