aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-02-02 14:30:08 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-02-02 14:30:08 -0500
commit7b383bef25e493cc4f047e44ebd6c3ccfd6d1cc5 (patch)
tree4a8379bb6d5929cf72c916da8e5bc7532aa43841 /include/linux
parent87af5e5c22568201dfbda5cac9c76e96982adc9c (diff)
parentcb8ee1a3d429f8898972c869dd4792afb04e961a (diff)
Merge branch 'slab/next' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux
Pull SLAB changes from Pekka Enberg: "Random bug fixes that have accumulated in my inbox over the past few months" * 'slab/next' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux: mm: Fix warning on make htmldocs caused by slab.c mm: slub: work around unneeded lockdep warning mm: sl[uo]b: fix misleading comments slub: Fix possible format string bug. slub: use lockdep_assert_held slub: Fix calculation of cpu slabs slab.h: remove duplicate kmalloc declaration and fix kernel-doc warnings
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/slab.h8
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