From: Manfred Spraul <manfred@colorfullife.com>
To: akpm@digeo.com, linux-kernel@vger.kernel.org
Cc: mbligh@aracnet.com
Subject: [PATCH] patch-slab-split-07-inline
Date: Sat, 05 Oct 2002 03:07:49 +0200 [thread overview]
Message-ID: <3D9E3B65.5070901@colorfullife.com> (raw)
[-- 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;
reply other threads:[~2002-10-05 1:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D9E3B65.5070901@colorfullife.com \
--to=manfred@colorfullife.com \
--cc=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mbligh@aracnet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox