From: Akinobu Mita Date: Wed, 6 Feb 2008 09:37:07 +0000 (-0800) Subject: fs: use hlist_unhashed X-Git-Tag: v2.6.25-rc1~722 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e8462caa915d4d12846db7aae2557b6db7c054d5;p=linux-2.6-omap-h63xx.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 d9ca1e5ceb9..1c323dd92fb 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);