From: Marc-Christian Petersen <m.c.p@wolk-project.de>
To: linux-kernel@vger.kernel.org
Cc: markhe@nextd.demon.co.uk, Shangc <shangcs@yahoo.com>
Subject: Re: [PATCH] mm/slab.c, kernel <2.4.20>
Date: Wed, 8 Jan 2003 23:12:32 +0100 [thread overview]
Message-ID: <200301082312.32961.m.c.p@wolk-project.de> (raw)
In-Reply-To: <20030108220316.83003.qmail@web10005.mail.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 462 bytes --]
On Wednesday 08 January 2003 23:03, Shangc wrote:
Hi Shangc,
> --- slab.c 2003-02-08 04:26:50.000000000 -0500
> +++ slab.c 2003-02-08 04:26:14.000000000 -0500
> @@ -397,7 +397,7 @@
> base = sizeof(slab_t);
> extra = sizeof(kmem_bufctl_t);
> }
> - i = 0;
> + i = (wastage - base) / (size + extra);
> while (i*size + L1_CACHE_ALIGN(base+i*extra) <=> wastage)
> i++;
> if (i > 0)
if you use this you may also want this.
ciao, Marc
[-- Attachment #2: slab-other.patch --]
[-- Type: text/x-diff, Size: 434 bytes --]
diff -Naurp a/mm/slab.c b/mm/slab.c
--- a/mm/slab.c Wed Jul 17 12:25:04 2002
+++ b/mm/slab.c Wed Jul 17 12:25:04 2002
@@ -399,10 +399,10 @@
base = sizeof(slab_t);
extra = sizeof(kmem_bufctl_t);
}
- i = 0;
+ i = (wastage - base)/(size + extra);
while (i*size + L1_CACHE_ALIGN(base+i*extra) <= wastage)
i++;
- if (i > 0)
+ while (i*size + L1_CACHE_ALIGN(base+i*extra) > wastage)
i--;
if (i > SLAB_LIMIT)
next prev parent reply other threads:[~2003-01-08 22:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-08 22:03 Shangc
2003-01-08 22:12 ` Marc-Christian Petersen [this message]
2003-01-08 22:58 ` Shangc
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=200301082312.32961.m.c.p@wolk-project.de \
--to=m.c.p@wolk-project.de \
--cc=linux-kernel@vger.kernel.org \
--cc=markhe@nextd.demon.co.uk \
--cc=shangcs@yahoo.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
all inboxes | Powered by JetHome®