source: trunk/target/linux/generic/patches-2.6.36/203-slab_maxsize.patch @ 30779

Last change on this file since 30779 was 30779, checked in by florian, 4 years ago

[kernel/2.6.36] refresh patches

File size: 561 bytes
  • include/linux/slab.h

    a b int kmem_ptr_validate(struct kmem_cache 
    130130 * to do various tricks to work around compiler limitations in order to 
    131131 * ensure proper constant folding. 
    132132 */ 
    133 #define KMALLOC_SHIFT_HIGH      ((MAX_ORDER + PAGE_SHIFT - 1) <= 25 ? \ 
    134                                 (MAX_ORDER + PAGE_SHIFT - 1) : 25) 
     133#define KMALLOC_SHIFT_HIGH      ((MAX_ORDER + PAGE_SHIFT - 1) <= 17 ? \ 
     134                                (MAX_ORDER + PAGE_SHIFT - 1) : 17) 
    135135 
    136136#define KMALLOC_MAX_SIZE        (1UL << KMALLOC_SHIFT_HIGH) 
    137137#define KMALLOC_MAX_ORDER       (KMALLOC_SHIFT_HIGH - PAGE_SHIFT) 
Note: See TracBrowser for help on using the repository browser.