lkml.org 
[lkml]   [2002]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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;
\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.037 / U:0.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site