1 The DRBD module does not compile without that
3 Those definitions are part of the original RHEL kernel. Not sure
4 why openvz patches removes that.
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
9 #define MAX_ID_BIT (1U << MAX_ID_SHIFT)
10 #define MAX_ID_MASK (MAX_ID_BIT - 1)
12 +/* Leave the possibility of an incomplete final layer */
13 +#define MAX_LEVEL (MAX_ID_SHIFT + IDR_BITS - 1) / IDR_BITS
15 +/* Number of id_layer structs to leave in free list */
16 +#define IDR_FREE_MAX MAX_LEVEL + MAX_LEVEL
19 unsigned long bitmap; /* A zero bit means "space here" */
20 struct idr_layer *ary[1<<IDR_BITS];