summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dcache.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index a64a657545fe..0abaaaa2c96d 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -156,8 +156,7 @@ extern rwlock_t dparent_lock;
static __inline__ void d_drop(struct dentry * dentry)
{
spin_lock(&dcache_lock);
- list_del(&dentry->d_hash);
- INIT_LIST_HEAD(&dentry->d_hash);
+ list_del_init(&dentry->d_hash);
spin_unlock(&dcache_lock);
}