Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96203dd
)
Branch b1_4
author
adilger
<adilger>
Mon, 12 Sep 2005 22:47:07 +0000
(22:47 +0000)
committer
adilger
<adilger>
Mon, 12 Sep 2005 22:47:07 +0000
(22:47 +0000)
Compatibility for 2.6.12 kernel.
b=6864
lustre/include/linux/lustre_compat25.h
patch
|
blob
|
history
diff --git
a/lustre/include/linux/lustre_compat25.h
b/lustre/include/linux/lustre_compat25.h
index
28c2092
..
f7b626c
100644
(file)
--- a/
lustre/include/linux/lustre_compat25.h
+++ b/
lustre/include/linux/lustre_compat25.h
@@
-138,6
+138,10
@@
static inline int cleanup_group_info(void)
#include <linux/proc_fs.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,11)
+#define __d_rehash(dentry, lock) d_rehash_cond(dentry, lock)
+#endif
+
#else /* 2.4.. */
#ifdef HAVE_MM_INLINE
@@
-218,8
+222,8
@@
static inline void ll_redirty_page(struct page *page)
static inline void __d_drop(struct dentry *dentry)
{
- list_del(&dentry->d_hash);
- INIT_LIST_HEAD(&dentry->d_hash);
+
list_del(&dentry->d_hash);
+
INIT_LIST_HEAD(&dentry->d_hash);
}
static inline void lustre_daemonize_helper(void)