diff options
author | David Rientjes <rientjes@google.com> | 2012-08-16 15:25:31 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-08-17 08:35:44 -0400 |
commit | 5b74beb425e0eb009d16d4b9a0f55847a5f342fa (patch) | |
tree | a1d140c66fea40ba3937b557207fd49bf3c916e0 /mm/slab.c | |
parent | c0931ef1f3e7305e55de1591602e5f25e4c11d1d (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.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -515,12 +515,6 @@ EXPORT_SYMBOL(slab_buffer_size); | |||
515 | static int slab_max_order = SLAB_MAX_ORDER_LO; | 515 | static int slab_max_order = SLAB_MAX_ORDER_LO; |
516 | static bool slab_max_order_set __initdata; | 516 | static bool slab_max_order_set __initdata; |
517 | 517 | ||
518 | static inline struct kmem_cache *page_get_cache(struct page *page) | ||
519 | { | ||
520 | BUG_ON(!PageSlab(page)); | ||
521 | return page->slab_cache; | ||
522 | } | ||
523 | |||
524 | static inline struct kmem_cache *virt_to_cache(const void *obj) | 518 | static 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); |