patch-slab-split-07-inline
PATCH 1/1 patch-slab-split-07-inline
part 7:
- remove inline from the cache poison checks: the functions are not performance critical.
--
Manfred
mm/slab.c +2 -2
@@ -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;