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

Manfred Spraul (manfred@colorfullife.com)
Sat, 05 Oct 2002 03:07:49 +0200


This is a multi-part message in MIME format.
--------------080109050801090306040403
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

part 7:
- remove inline from the cache poison checks: the functions are not
performance critical.

--
	Manfred

--------------080109050801090306040403 Content-Type: text/plain; name="patch-slab-split-07-inline" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-slab-split-07-inline"

--- 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;

--------------080109050801090306040403--

- 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/