diff options
author | Ezequiel Garcia <elezegarcia@gmail.com> | 2012-09-08 17:47:52 -0300 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-09-25 10:12:19 +0300 |
commit | ff4fcd01ec86d98d15d2fd96f22f19bb1d341b88 (patch) | |
tree | 8cc024f7284b07ccbdf01e9b90bf752ddbf974d4 /include/linux/slab_def.h | |
parent | 90f2cbbc49a8fe5a49cea1d362d90e377b949d49 (diff) | |
download | linux-stable-ff4fcd01ec86d98d15d2fd96f22f19bb1d341b88.tar.gz linux-stable-ff4fcd01ec86d98d15d2fd96f22f19bb1d341b88.tar.bz2 linux-stable-ff4fcd01ec86d98d15d2fd96f22f19bb1d341b88.zip |
mm, slab: Remove silly function slab_buffer_size()
This function is seldom used, and can be simply replaced with cachep->size.
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'include/linux/slab_def.h')
-rw-r--r-- | include/linux/slab_def.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h index 36d7031a1a53..604ebc832a9a 100644 --- a/include/linux/slab_def.h +++ b/include/linux/slab_def.h @@ -113,17 +113,12 @@ void *__kmalloc(size_t size, gfp_t flags); #ifdef CONFIG_TRACING extern void *kmem_cache_alloc_trace(size_t size, struct kmem_cache *cachep, gfp_t flags); -extern size_t slab_buffer_size(struct kmem_cache *cachep); #else static __always_inline void * kmem_cache_alloc_trace(size_t size, struct kmem_cache *cachep, gfp_t flags) { return kmem_cache_alloc(cachep, flags); } -static inline size_t slab_buffer_size(struct kmem_cache *cachep) -{ - return 0; -} #endif static __always_inline void *kmalloc(size_t size, gfp_t flags) |