From: adilger Date: Wed, 22 Oct 2003 16:49:25 +0000 (+0000) Subject: Add back hlist compatibility to lustre_compat25.h until we update the kernel X-Git-Tag: v1_7_0_51~2^9~227 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ee31fdb6c8daecca1b7f58367d610d5a0ef9e758;p=fs%2Flustre-release.git Add back hlist compatibility to lustre_compat25.h until we update the kernel so Coop can continue testing at LLNL. --- diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h index 9c7f831..4d3f590 100644 --- a/lustre/include/linux/lustre_compat25.h +++ b/lustre/include/linux/lustre_compat25.h @@ -87,6 +87,18 @@ static inline void clear_page_dirty(struct page *page) ClearPageDirty(page); } +/* 2.5 uses hlists for some things, like the d_hash. we'll treat them + * as 2.5 and let macros drop back.. */ +#ifndef HLIST_HEAD /* until we get a kernel newer than l28 */ +#define hlist_entry list_entry +#define hlist_head list_head +#define hlist_node list_head +#define HLIST_HEAD LIST_HEAD +#define INIT_HLIST_HEAD INIT_LIST_HEAD +#define hlist_del_init list_del_init +#define hlist_add_head list_add +#define hlist_for_each_safe list_for_each_safe +#endif #define KDEVT_INIT(val) (val) #define ext3_xattr_set_handle ext3_xattr_set #define try_module_get __MOD_INC_USE_COUNT