[PATCH] patch-slab-split-07-inline

From: Manfred Spraul (manfred@colorfullife.com)
Date: Fri Oct 04 2002 - 20:07:49 EST


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;

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:49 EST