* [PATCH] fs: use hlist_unhashed
@ 2007-11-17 4:28 Akinobu Mita
0 siblings, 0 replies; only message in thread
From: Akinobu Mita @ 2007-11-17 4:28 UTC (permalink / raw)
To: linux-kernel
Use hlist_unhashed() instead of opencoded equivalent.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
---
fs/dcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: 2.6-mm/fs/dcache.c
===================================================================
--- 2.6-mm.orig/fs/dcache.c
+++ 2.6-mm/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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-17 4:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-17 4:28 [PATCH] fs: use hlist_unhashed Akinobu Mita
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).