From 0144252628cdaffe70a7e53cca0c6d0a7c4257e3 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Thu, 11 Jun 2009 13:23:18 +0100 Subject: [PATCH] --- yaml --- r: 147736 b: refs/heads/master c: 06f22f13f3cc2eff00db09f053218e5d4b757bc8 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/mm/slub.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index bda11d9a46d3..e4a10a19fbea 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4374e616d28e65265a5b433ceece275449f3d2e3 +refs/heads/master: 06f22f13f3cc2eff00db09f053218e5d4b757bc8 diff --git a/trunk/mm/slub.c b/trunk/mm/slub.c index 5e805a6fe36c..6674a7907b0c 100644 --- a/trunk/mm/slub.c +++ b/trunk/mm/slub.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -143,7 +144,7 @@ * Set of flags that will prevent slab merging */ #define SLUB_NEVER_MERGE (SLAB_RED_ZONE | SLAB_POISON | SLAB_STORE_USER | \ - SLAB_TRACE | SLAB_DESTROY_BY_RCU) + SLAB_TRACE | SLAB_DESTROY_BY_RCU | SLAB_NOLEAKTRACE) #define SLUB_MERGE_SAME (SLAB_DEBUG_FREE | SLAB_RECLAIM_ACCOUNT | \ SLAB_CACHE_DMA) @@ -1617,6 +1618,7 @@ static __always_inline void *slab_alloc(struct kmem_cache *s, if (unlikely((gfpflags & __GFP_ZERO) && object)) memset(object, 0, objsize); + kmemleak_alloc_recursive(object, objsize, 1, s->flags, gfpflags); return object; } @@ -1746,6 +1748,7 @@ static __always_inline void slab_free(struct kmem_cache *s, struct kmem_cache_cpu *c; unsigned long flags; + kmemleak_free_recursive(x, s->flags); local_irq_save(flags); c = get_cpu_slab(s, smp_processor_id()); debug_check_no_locks_freed(object, c->objsize);