summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dcache.h2
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)