fs: use hlist_unhashed
Use hlist_unhashed() instead of opencoded equivalent. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
07a154b2bb
commit
e8462caa91
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue