]> git.hungrycats.org Git - linux/commitdiff
[PATCH] slab: uninline poisoning checks
authorAndrew Morton <akpm@digeo.com>
Wed, 30 Oct 2002 07:24:52 +0000 (23:24 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Wed, 30 Oct 2002 07:24:52 +0000 (23:24 -0800)
remove inline from the cache poison checks: the functions are not
performance critical.

mm/slab.c

index 3f707602be7cb4a6026ec13b9250cac05780974d..35e1af22ab9c57058c8fbaacb55eeaaac3cd2367 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -688,7 +688,7 @@ static inline void kmem_freepages (kmem_cache_t *cachep, void *addr)
 }
 
 #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 @@ static inline void poison_obj (kmem_cache_t *cachep, void *addr)
        *(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;