Whamcloud - gitweb
land v0.9.1 on HEAD, in preparation for a 1.0.x branch
[fs/lustre-release.git] / lustre / kernel_patches / patches / listman-2.4.18.patch
1 Index: linux-2.4.18-chaos/include/linux/list.h
2 ===================================================================
3 --- linux-2.4.18-chaos.orig/include/linux/list.h        2003-10-22 13:43:39.000000000 +0400
4 +++ linux-2.4.18-chaos/include/linux/list.h     2003-10-22 13:44:17.000000000 +0400
5 @@ -173,6 +173,16 @@
6         for (pos = (head)->prev, prefetch(pos->prev); pos != (head); \
7                 pos = pos->prev, prefetch(pos->prev))
8                 
9 +/* 2.5 uses hlists for some things, like the d_hash.  we'll treat them
10 + * as 2.5 and let macros drop back.. */
11 +#define hlist_entry                     list_entry
12 +#define hlist_head                      list_head
13 +#define hlist_node                      list_head
14 +#define HLIST_HEAD                      LIST_HEAD
15 +#define INIT_HLIST_HEAD                 INIT_LIST_HEAD
16 +#define hlist_del_init                  list_del_init
17 +#define hlist_add_head                  list_add
18 +#define hlist_for_each_safe             list_for_each_safe
19  
20  #endif /* __KERNEL__ || _LVM_H_INCLUDE */
21