aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 11d9af5f9d2..8524923966b 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -803,6 +803,7 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size,
803 *left_over = slab_size - nr_objs*buffer_size - mgmt_size; 803 *left_over = slab_size - nr_objs*buffer_size - mgmt_size;
804} 804}
805 805
806#if DEBUG
806#define slab_error(cachep, msg) __slab_error(__func__, cachep, msg) 807#define slab_error(cachep, msg) __slab_error(__func__, cachep, msg)
807 808
808static void __slab_error(const char *function, struct kmem_cache *cachep, 809static void __slab_error(const char *function, struct kmem_cache *cachep,
@@ -812,6 +813,7 @@ static void __slab_error(const char *function, struct kmem_cache *cachep,
812 function, cachep->name, msg); 813 function, cachep->name, msg);
813 dump_stack(); 814 dump_stack();
814} 815}
816#endif
815 817
816/* 818/*
817 * By default on NUMA we use alien caches to stage the freeing of 819 * By default on NUMA we use alien caches to stage the freeing of