diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/idr.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/idr.h b/include/linux/idr.h index 6dcf133f208a..99b0ce533f0e 100644 --- a/include/linux/idr.h +++ b/include/linux/idr.h | |||
| @@ -38,16 +38,6 @@ | |||
| 38 | #define IDR_SIZE (1 << IDR_BITS) | 38 | #define IDR_SIZE (1 << IDR_BITS) |
| 39 | #define IDR_MASK ((1 << IDR_BITS)-1) | 39 | #define IDR_MASK ((1 << IDR_BITS)-1) |
| 40 | 40 | ||
| 41 | #define MAX_IDR_SHIFT (sizeof(int)*8 - 1) | ||
| 42 | #define MAX_IDR_BIT (1U << MAX_IDR_SHIFT) | ||
| 43 | #define MAX_IDR_MASK (MAX_IDR_BIT - 1) | ||
| 44 | |||
| 45 | /* Leave the possibility of an incomplete final layer */ | ||
| 46 | #define MAX_IDR_LEVEL ((MAX_IDR_SHIFT + IDR_BITS - 1) / IDR_BITS) | ||
| 47 | |||
| 48 | /* Number of id_layer structs to leave in free list */ | ||
| 49 | #define MAX_IDR_FREE (MAX_IDR_LEVEL * 2) | ||
| 50 | |||
| 51 | struct idr_layer { | 41 | struct idr_layer { |
| 52 | unsigned long bitmap; /* A zero bit means "space here" */ | 42 | unsigned long bitmap; /* A zero bit means "space here" */ |
| 53 | struct idr_layer __rcu *ary[1<<IDR_BITS]; | 43 | struct idr_layer __rcu *ary[1<<IDR_BITS]; |
