public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] patch-slab-split-07-inline
@ 2002-10-05  1:07 Manfred Spraul
  0 siblings, 0 replies; only message in thread
From: Manfred Spraul @ 2002-10-05  1:07 UTC (permalink / raw)
  To: akpm, linux-kernel; +Cc: mbligh

[-- Attachment #1: Type: text/plain, Size: 113 bytes --]

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

--
	Manfred


[-- Attachment #2: patch-slab-split-07-inline --]
[-- Type: text/plain, Size: 579 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-05  1:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-05  1:07 [PATCH] patch-slab-split-07-inline Manfred Spraul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox