aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2012-08-16 15:25:31 -0400
committerPekka Enberg <penberg@kernel.org>2012-08-17 08:35:44 -0400
commit5b74beb425e0eb009d16d4b9a0f55847a5f342fa (patch)
treea1d140c66fea40ba3937b557207fd49bf3c916e0 /mm/slab.c
parentc0931ef1f3e7305e55de1591602e5f25e4c11d1d (diff)
mm, slab: remove page_get_cache
page_get_cache() isn't called from anything, so remove it. Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/mm/slab.c b/mm/slab.c
index cb6ce2dfc7cf..3b4587bb7b19 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -515,12 +515,6 @@ EXPORT_SYMBOL(slab_buffer_size);
515static int slab_max_order = SLAB_MAX_ORDER_LO; 515static int slab_max_order = SLAB_MAX_ORDER_LO;
516static bool slab_max_order_set __initdata; 516static bool slab_max_order_set __initdata;
517 517
518static inline struct kmem_cache *page_get_cache(struct page *page)
519{
520 BUG_ON(!PageSlab(page));
521 return page->slab_cache;
522}
523
524static inline struct kmem_cache *virt_to_cache(const void *obj) 518static inline struct kmem_cache *virt_to_cache(const void *obj)
525{ 519{
526 struct page *page = virt_to_head_page(obj); 520 struct page *page = virt_to_head_page(obj);