diff options
author | Ezequiel Garcia <elezegarcia@gmail.com> | 2012-10-19 08:33:12 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-10-31 02:52:15 -0400 |
commit | 242860a47a75b933a79a30f6a40bf4858f4a3ecc (patch) | |
tree | 2c6c098274ea1a335ecc9292551eda693ccbead5 /mm/slab.c | |
parent | fe74fe2bf293d061826f0d7afc2ca8456bdbb40e (diff) |
mm/sl[aou]b: Move common kmem_cache_size() to slab.h
This function is identically defined in all three allocators
and it's trivial to move it to slab.h
Since now it's static, inline, header-defined function
this patch also drops the EXPORT_SYMBOL tag.
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Matt Mackall <mpm@selenic.com>
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -3969,12 +3969,6 @@ void kfree(const void *objp) | |||
3969 | } | 3969 | } |
3970 | EXPORT_SYMBOL(kfree); | 3970 | EXPORT_SYMBOL(kfree); |
3971 | 3971 | ||
3972 | unsigned int kmem_cache_size(struct kmem_cache *cachep) | ||
3973 | { | ||
3974 | return cachep->object_size; | ||
3975 | } | ||
3976 | EXPORT_SYMBOL(kmem_cache_size); | ||
3977 | |||
3978 | /* | 3972 | /* |
3979 | * This initializes kmem_list3 or resizes various caches for all nodes. | 3973 | * This initializes kmem_list3 or resizes various caches for all nodes. |
3980 | */ | 3974 | */ |