diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-10 00:56:48 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-10 00:56:48 -0700 |
| commit | 201be7ab47dce6e31d8b8599abf24a72cb7a37ce (patch) | |
| tree | f23de7787484adede0db4737a4df589ce01ce327 /include/linux/dcache.h | |
| parent | b29a28a041aba98c707abf1f2f400fad0b558332 (diff) | |
Fix __d_drop() to properly initialize the d_hash fields,
so that __d_drop() can safely be done multiple times on
a dentry without corrupting other hash entries.
Noticed by Trond Myklebust.
Diffstat (limited to 'include/linux/dcache.h')
| -rw-r--r-- | include/linux/dcache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 78fafd500123..72ce83dd69e5 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -175,7 +175,7 @@ extern spinlock_t dcache_lock; static inline void __d_drop(struct dentry *dentry) { dentry->d_vfs_flags |= DCACHE_UNHASHED; - hlist_del_rcu(&dentry->d_hash); + hlist_del_rcu_init(&dentry->d_hash); } static inline void d_drop(struct dentry *dentry) |
