slab allocators: MAX_ORDER one off fix

MAX_ORDER is the first order that is not possible.

Use MAX_ORDER - 1 to calculate the larges possible object size in slab.h

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Christoph Lameter and committed by Linus Torvalds debee076 71c42157

+2 -2
+2 -2
include/linux/slab.h
··· 82 * to do various tricks to work around compiler limitations in order to 83 * ensure proper constant folding. 84 */ 85 - #define KMALLOC_SHIFT_HIGH ((MAX_ORDER + PAGE_SHIFT) <= 25 ? \ 86 - (MAX_ORDER + PAGE_SHIFT) : 25) 87 88 #define KMALLOC_MAX_SIZE (1UL << KMALLOC_SHIFT_HIGH) 89 #define KMALLOC_MAX_ORDER (KMALLOC_SHIFT_HIGH - PAGE_SHIFT)
··· 82 * to do various tricks to work around compiler limitations in order to 83 * ensure proper constant folding. 84 */ 85 + #define KMALLOC_SHIFT_HIGH ((MAX_ORDER + PAGE_SHIFT - 1) <= 25 ? \ 86 + (MAX_ORDER + PAGE_SHIFT - 1) : 25) 87 88 #define KMALLOC_MAX_SIZE (1UL << KMALLOC_SHIFT_HIGH) 89 #define KMALLOC_MAX_ORDER (KMALLOC_SHIFT_HIGH - PAGE_SHIFT)