From: Christoph Lameter Date: Fri, 20 Aug 2010 17:37:12 +0000 (-0500) Subject: slub: Force no inlining of debug functions X-Git-Tag: v2.6.37-rc1~141^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1537066c69bee9ebc4b998626c532ce1724d4e67;p=profile%2Fivi%2Fkernel-x86-ivi.git slub: Force no inlining of debug functions Compiler folds the debgging functions into the critical paths. Avoid that by adding noinline to the functions that check for problems. Acked-by: David Rientjes Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg --- diff --git a/mm/slub.c b/mm/slub.c index 13fffe1..d28ee64 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -862,7 +862,7 @@ static void setup_object_debug(struct kmem_cache *s, struct page *page, init_tracking(s, object); } -static int alloc_debug_processing(struct kmem_cache *s, struct page *page, +static noinline int alloc_debug_processing(struct kmem_cache *s, struct page *page, void *object, unsigned long addr) { if (!check_slab(s, page)) @@ -902,8 +902,8 @@ bad: return 0; } -static int free_debug_processing(struct kmem_cache *s, struct page *page, - void *object, unsigned long addr) +static noinline int free_debug_processing(struct kmem_cache *s, + struct page *page, void *object, unsigned long addr) { if (!check_slab(s, page)) goto fail;