Skip to contentSkip to conversation

fs: use hlist_unhashed

PATCH New Akinobu Mita 1 participant 1 message Nov 17, 2007 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: use hlist_unhashed

Use hlist_unhashed() instead of opencoded equivalent.

---
 fs/dcache.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/dcache.c +1 -1
Index: 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);