]> git.proxmox.com Git - pve-kernel-2.6.32.git/blame - fix-idr-header-for-drbd-compilation.patch
update to vzkernel-2.6.32-042stab113.12.src.rpm
[pve-kernel-2.6.32.git] / fix-idr-header-for-drbd-compilation.patch
CommitLineData
88f21415
DM
1The DRBD module does not compile without that
2
3Those definitions are part of the original RHEL kernel. Not sure
4why 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];