Commit 1aabbecc authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] slab: uninline poisoning checks

remove inline from the cache poison checks: the functions are not
performance critical.
parent cad9cd51
...@@ -688,7 +688,7 @@ static inline void kmem_freepages (kmem_cache_t *cachep, void *addr) ...@@ -688,7 +688,7 @@ static inline void kmem_freepages (kmem_cache_t *cachep, void *addr)
} }
#if DEBUG #if DEBUG
static inline void poison_obj (kmem_cache_t *cachep, void *addr) static void poison_obj (kmem_cache_t *cachep, void *addr)
{ {
int size = cachep->objsize; int size = cachep->objsize;
if (cachep->flags & SLAB_RED_ZONE) { if (cachep->flags & SLAB_RED_ZONE) {
...@@ -699,7 +699,7 @@ static inline void poison_obj (kmem_cache_t *cachep, void *addr) ...@@ -699,7 +699,7 @@ static inline void poison_obj (kmem_cache_t *cachep, void *addr)
*(unsigned char *)(addr+size-1) = POISON_END; *(unsigned char *)(addr+size-1) = POISON_END;
} }
static inline int check_poison_obj (kmem_cache_t *cachep, void *addr) static int check_poison_obj (kmem_cache_t *cachep, void *addr)
{ {
int size = cachep->objsize; int size = cachep->objsize;
void *end; void *end;
......
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