source: branches/backfire/target/linux/generic-2.6/patches-2.6.30/203-slab_maxsize.patch @ 29023

Last change on this file since 29023 was 29023, checked in by florian, 5 years ago

refresh 2.6.30 patches

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

    a b int kmem_ptr_validate(struct kmem_cache 
    115115 * to do various tricks to work around compiler limitations in order to 
    116116 * ensure proper constant folding. 
    117117 */ 
    118 #define KMALLOC_SHIFT_HIGH      ((MAX_ORDER + PAGE_SHIFT - 1) <= 25 ? \ 
    119                                 (MAX_ORDER + PAGE_SHIFT - 1) : 25) 
     118#define KMALLOC_SHIFT_HIGH      ((MAX_ORDER + PAGE_SHIFT - 1) <= 17 ? \ 
     119                                (MAX_ORDER + PAGE_SHIFT - 1) : 17) 
    120120 
    121121#define KMALLOC_MAX_SIZE        (1UL << KMALLOC_SHIFT_HIGH) 
    122122#define KMALLOC_MAX_ORDER       (KMALLOC_SHIFT_HIGH - PAGE_SHIFT) 
Note: See TracBrowser for help on using the repository browser.