From: Akinobu Mita Date: Wed, 6 Feb 2008 09:37:07 +0000 (-0800) Subject: fs: use hlist_unhashed X-Git-Tag: firefly_0821_release~23215 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e8462caa915d4d12846db7aae2557b6db7c054d5;p=firefly-linux-kernel-4.4.55.git fs: use hlist_unhashed Use hlist_unhashed() instead of opencoded equivalent. Signed-off-by: Akinobu Mita Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/dcache.c b/fs/dcache.c index d9ca1e5ceb92..1c323dd92fb2 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -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);