diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/slab.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index a060142aa5f5..9260abdd67df 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h | |||
| @@ -205,8 +205,8 @@ struct kmem_cache { | |||
| 205 | 205 | ||
| 206 | #ifdef CONFIG_SLUB | 206 | #ifdef CONFIG_SLUB |
| 207 | /* | 207 | /* |
| 208 | * SLUB allocates up to order 2 pages directly and otherwise | 208 | * SLUB directly allocates requests fitting in to an order-1 page |
| 209 | * passes the request to the page allocator. | 209 | * (PAGE_SIZE*2). Larger requests are passed to the page allocator. |
| 210 | */ | 210 | */ |
| 211 | #define KMALLOC_SHIFT_HIGH (PAGE_SHIFT + 1) | 211 | #define KMALLOC_SHIFT_HIGH (PAGE_SHIFT + 1) |
| 212 | #define KMALLOC_SHIFT_MAX (MAX_ORDER + PAGE_SHIFT) | 212 | #define KMALLOC_SHIFT_MAX (MAX_ORDER + PAGE_SHIFT) |
| @@ -217,12 +217,12 @@ struct kmem_cache { | |||
| 217 | 217 | ||
| 218 | #ifdef CONFIG_SLOB | 218 | #ifdef CONFIG_SLOB |
| 219 | /* | 219 | /* |
| 220 | * SLOB passes all page size and larger requests to the page allocator. | 220 | * SLOB passes all requests larger than one page to the page allocator. |
| 221 | * No kmalloc array is necessary since objects of different sizes can | 221 | * No kmalloc array is necessary since objects of different sizes can |
| 222 | * be allocated from the same page. | 222 | * be allocated from the same page. |
| 223 | */ | 223 | */ |
| 224 | #define KMALLOC_SHIFT_MAX 30 | ||
| 225 | #define KMALLOC_SHIFT_HIGH PAGE_SHIFT | 224 | #define KMALLOC_SHIFT_HIGH PAGE_SHIFT |
| 225 | #define KMALLOC_SHIFT_MAX 30 | ||
| 226 | #ifndef KMALLOC_SHIFT_LOW | 226 | #ifndef KMALLOC_SHIFT_LOW |
| 227 | #define KMALLOC_SHIFT_LOW 3 | 227 | #define KMALLOC_SHIFT_LOW 3 |
| 228 | #endif | 228 | #endif |
