kernel: update 3.18 to 3.18.1
[openwrt.git] / target / linux / generic / patches-3.18 / 900-slab_maxsize.patch
1 --- a/include/linux/slab.h
2 +++ b/include/linux/slab.h
3 @@ -172,8 +172,8 @@ size_t ksize(const void *);
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  #define KMALLOC_SHIFT_MAX      KMALLOC_SHIFT_HIGH
12  #ifndef KMALLOC_SHIFT_LOW
13  #define KMALLOC_SHIFT_LOW      5