aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 51ddd01604cd..510ee9a2cdb2 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2706,17 +2706,6 @@ err:
2706} 2706}
2707EXPORT_SYMBOL(kmem_cache_create); 2707EXPORT_SYMBOL(kmem_cache_create);
2708 2708
2709void *kmem_cache_zalloc(struct kmem_cache *s, gfp_t flags)
2710{
2711 void *x;
2712
2713 x = slab_alloc(s, flags, -1, __builtin_return_address(0));
2714 if (x)
2715 memset(x, 0, s->objsize);
2716 return x;
2717}
2718EXPORT_SYMBOL(kmem_cache_zalloc);
2719
2720#ifdef CONFIG_SMP 2709#ifdef CONFIG_SMP
2721/* 2710/*
2722 * Use the cpu notifier to insure that the cpu slabs are flushed when 2711 * Use the cpu notifier to insure that the cpu slabs are flushed when