From c7d7d267f165a2ea2c8ef6c747fe7994ea8c678c Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Mon, 7 Oct 2002 19:51:03 -0700 Subject: [PATCH] increase list_del_init usage. --- include/linux/dcache.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/linux') 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); } -- cgit v1.2.3