summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2012-08-16 12:25:31 -0700
committerPekka Enberg <penberg@kernel.org>2012-08-17 15:35:44 +0300
commit5b74beb425e0eb009d16d4b9a0f55847a5f342fa (patch)
treea1d140c66fea40ba3937b557207fd49bf3c916e0 /mm/slab.c
parentc0931ef1f3e7305e55de1591602e5f25e4c11d1d (diff)
downloadlinux-5b74beb425e0eb009d16d4b9a0f55847a5f342fa.tar.gz
linux-5b74beb425e0eb009d16d4b9a0f55847a5f342fa.tar.bz2
linux-5b74beb425e0eb009d16d4b9a0f55847a5f342fa.zip
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);
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);