aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index b72bc98e2dc1..acc975fcc8cc 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1470,6 +1470,9 @@ static void *__slab_alloc(struct kmem_cache *s,
1470 void **object; 1470 void **object;
1471 struct page *new; 1471 struct page *new;
1472 1472
1473 /* We handle __GFP_ZERO in the caller */
1474 gfpflags &= ~__GFP_ZERO;
1475
1473 if (!c->page) 1476 if (!c->page)
1474 goto new_slab; 1477 goto new_slab;
1475 1478
@@ -2685,7 +2688,7 @@ void kfree(const void *x)
2685} 2688}
2686EXPORT_SYMBOL(kfree); 2689EXPORT_SYMBOL(kfree);
2687 2690
2688#if defined(SLUB_DEBUG) || defined(CONFIG_SLABINFO) 2691#if defined(CONFIG_SLUB_DEBUG) || defined(CONFIG_SLABINFO)
2689static unsigned long count_partial(struct kmem_cache_node *n) 2692static unsigned long count_partial(struct kmem_cache_node *n)
2690{ 2693{
2691 unsigned long flags; 2694 unsigned long flags;