diff options
author | Christoph Lameter <cl@linux.com> | 2013-09-04 18:35:34 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2013-09-04 19:51:33 +0200 |
commit | f1b6eb6e6be149b40ebb013f5bfe2ac86b6f1c1b (patch) | |
tree | 245897276adc30bc17a23ba1b5364a065e2ecb74 /mm/slub.c | |
parent | mm, slab_common: add 'unlikely' to size check of kmalloc_slab() (diff) | |
download | linux-f1b6eb6e6be149b40ebb013f5bfe2ac86b6f1c1b.tar.xz linux-f1b6eb6e6be149b40ebb013f5bfe2ac86b6f1c1b.zip |
mm/sl[aou]b: Move kmallocXXX functions to common code
The kmalloc* functions of all slab allcoators are similar now so
lets move them into slab.h. This requires some function naming changes
in slob.
As a results of this patch there is a common set of functions for
all allocators. Also means that kmalloc_large() is now available
in general to perform large order allocations that go directly
via the page allocator. kmalloc_large() can be substituted if
kmalloc() throws warnings because of too large allocations.
kmalloc_large() has exactly the same semantics as kmalloc but
can only used for allocations > PAGE_SIZE.
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mm/slub.c b/mm/slub.c index d65bf8abc6e6..fd8f8655efc6 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2450,14 +2450,6 @@ void *kmem_cache_alloc_trace(struct kmem_cache *s, gfp_t gfpflags, size_t size) return ret; } EXPORT_SYMBOL(kmem_cache_alloc_trace); - -void *kmalloc_order_trace(size_t size, gfp_t flags, unsigned int order) -{ - void *ret = kmalloc_order(size, flags, order); - trace_kmalloc(_RET_IP_, ret, size, PAGE_SIZE << order, flags); - return ret; -} -EXPORT_SYMBOL(kmalloc_order_trace); #endif #ifdef CONFIG_NUMA |