Skip to content

Commit

Permalink
mm, slab: remove page_get_cache
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rientjes authored and penberg committed Aug 17, 2012
1 parent c0931ef commit 5b74beb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b74beb

Please sign in to comment.