Commit 1537066c authored by Christoph Lameter's avatar Christoph Lameter Committed by Pekka Enberg

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: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent 899611ee
...@@ -862,7 +862,7 @@ static void setup_object_debug(struct kmem_cache *s, struct page *page, ...@@ -862,7 +862,7 @@ static void setup_object_debug(struct kmem_cache *s, struct page *page,
init_tracking(s, object); 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) void *object, unsigned long addr)
{ {
if (!check_slab(s, page)) if (!check_slab(s, page))
...@@ -902,8 +902,8 @@ static int alloc_debug_processing(struct kmem_cache *s, struct page *page, ...@@ -902,8 +902,8 @@ static int alloc_debug_processing(struct kmem_cache *s, struct page *page,
return 0; return 0;
} }
static int free_debug_processing(struct kmem_cache *s, struct page *page, static noinline int free_debug_processing(struct kmem_cache *s,
void *object, unsigned long addr) struct page *page, void *object, unsigned long addr)
{ {
if (!check_slab(s, page)) if (!check_slab(s, page))
goto fail; goto fail;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment