mm, slab: remove page_get_cache
authorDavid Rientjes <rientjes@google.com>
Thu, 16 Aug 2012 19:25:31 +0000 (12:25 -0700)
committerPekka Enberg <penberg@kernel.org>
Fri, 17 Aug 2012 12:35:44 +0000 (15:35 +0300)
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>
mm/slab.c

index cb6ce2dfc7cf4d8819309110a302e560fd9745cf..3b4587bb7b19ed5b859a9f58c3a86a79d67cc2b9 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -515,12 +515,6 @@ EXPORT_SYMBOL(slab_buffer_size);
 static int slab_max_order = SLAB_MAX_ORDER_LO;
 static bool slab_max_order_set __initdata;
 
-static inline struct kmem_cache *page_get_cache(struct page *page)
-{
-       BUG_ON(!PageSlab(page));
-       return page->slab_cache;
-}
-
 static inline struct kmem_cache *virt_to_cache(const void *obj)
 {
        struct page *page = virt_to_head_page(obj);