Messages in this thread Patch in this message | | | Date | Sat, 05 Oct 2002 03:07:49 +0200 | From | Manfred Spraul <> | Subject | [PATCH] patch-slab-split-07-inline |
| |
part 7: - remove inline from the cache poison checks: the functions are not performance critical.
-- Manfred
--- 2.5/mm/slab.c Sat Oct 5 02:55:52 2002 +++ build-2.5/mm/slab.c Sat Oct 5 03:05:27 2002 @@ -688,7 +688,7 @@ } #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; if (cachep->flags & SLAB_RED_ZONE) { @@ -699,7 +699,7 @@ *(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; void *end; | |