aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2012-09-04 19:38:33 -0400
committerPekka Enberg <penberg@kernel.org>2012-09-05 05:00:37 -0400
commitcce89f4f6911286500cf7be0363f46c9b0a12ce0 (patch)
treec60d648404ea213d2f3d657c64fb86b2243e6a89 /mm/slab.c
parent8a13a4cc80bb25c9eab2e7e56bab724fcfa55fce (diff)
mm/sl[aou]b: Move kmem_cache refcounting to common code
Get rid of the refcount stuff in the allocators and do that part of kmem_cache management in the common code. Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index f1f6d54e129a..11d9af5f9d2e 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2555,7 +2555,6 @@ __kmem_cache_create (struct kmem_cache *cachep, unsigned long flags)
2555 */ 2555 */
2556 BUG_ON(ZERO_OR_NULL_PTR(cachep->slabp_cache)); 2556 BUG_ON(ZERO_OR_NULL_PTR(cachep->slabp_cache));
2557 } 2557 }
2558 cachep->refcount = 1;
2559 2558
2560 err = setup_cpu_cache(cachep, gfp); 2559 err = setup_cpu_cache(cachep, gfp);
2561 if (err) { 2560 if (err) {