From 59dfbf8ac2dbc337b974acf6217a9539bdf92143 Mon Sep 17 00:00:00 2001 From: braam Date: Thu, 24 Jul 2003 22:03:44 +0000 Subject: [PATCH] - add __d_drop for 2.4 --- lustre/include/linux/lustre_compat25.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h index 20ae1d4..4b1c0d5 100644 --- a/lustre/include/linux/lustre_compat25.h +++ b/lustre/include/linux/lustre_compat25.h @@ -89,6 +89,12 @@ typedef long sector_t; #define ll_pgcache_lock(mapping) spin_lock(&pagecache_lock) #define ll_pgcache_unlock(mapping) spin_unlock(&pagecache_lock) +static inline void __d_drop(struct dentry *dentry) +{ + list_del(&dentry->d_hash); + INIT_LIST_HEAD(&dentry->d_hash); +} + #endif /* end of 2.4 compat macros */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) -- 1.8.3.1