]>
Commit | Line | Data |
---|---|---|
88f21415 DM |
1 | The DRBD module does not compile without that |
2 | ||
3 | Those definitions are part of the original RHEL kernel. Not sure | |
4 | why openvz patches removes that. | |
5 | ||
6 | --- ../linux-2.6-2.6.32/include/linux/idr.h 2013-11-14 11:18:46.000000000 +0100 | |
7 | +++ linux-2.6.32-358.23.2.el6/include/linux/idr.h 2013-09-14 10:52:55.000000000 +0200 | |
8 | @@ -42,6 +42,12 @@ | |
9 | #define MAX_ID_BIT (1U << MAX_ID_SHIFT) | |
10 | #define MAX_ID_MASK (MAX_ID_BIT - 1) | |
11 | ||
12 | +/* Leave the possibility of an incomplete final layer */ | |
13 | +#define MAX_LEVEL (MAX_ID_SHIFT + IDR_BITS - 1) / IDR_BITS | |
14 | + | |
15 | +/* Number of id_layer structs to leave in free list */ | |
16 | +#define IDR_FREE_MAX MAX_LEVEL + MAX_LEVEL | |
17 | + | |
18 | struct idr_layer { | |
19 | unsigned long bitmap; /* A zero bit means "space here" */ | |
20 | struct idr_layer *ary[1<<IDR_BITS]; |