Root/
Source at commit 7ed5276 created 13 years 8 months ago. By florian, [kernel] refresh 2.6.32 patches | |
---|---|
1 | --- a/include/linux/slab.h |
2 | +++ b/include/linux/slab.h |
3 | @@ -124,8 +124,8 @@ int kmem_ptr_validate(struct kmem_cache |
4 | * to do various tricks to work around compiler limitations in order to |
5 | * ensure proper constant folding. |
6 | */ |
7 | -#define KMALLOC_SHIFT_HIGH ((MAX_ORDER + PAGE_SHIFT - 1) <= 25 ? \ |
8 | - (MAX_ORDER + PAGE_SHIFT - 1) : 25) |
9 | +#define KMALLOC_SHIFT_HIGH ((MAX_ORDER + PAGE_SHIFT - 1) <= 17 ? \ |
10 | + (MAX_ORDER + PAGE_SHIFT - 1) : 17) |
11 | |
12 | #define KMALLOC_MAX_SIZE (1UL << KMALLOC_SHIFT_HIGH) |
13 | #define KMALLOC_MAX_ORDER (KMALLOC_SHIFT_HIGH - PAGE_SHIFT) |
14 |