diff options
| author | Dave Jones <davej@codemonkey.org.uk> | 2002-10-07 19:51:03 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-10-07 19:51:03 -0700 |
| commit | c7d7d267f165a2ea2c8ef6c747fe7994ea8c678c (patch) | |
| tree | 0e49fb316675085f9aa04d98e3d13a189a7b714a /include | |
| parent | 35a79db4dc1836abda8aebcb639eef256ba3b148 (diff) | |
[PATCH] increase list_del_init usage.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/dcache.h | 3 |
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); } |
