The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Submissions for 2.4.19-pre [slab estimate optimization (Balbir Singh)]
@ 2002-02-26  2:04 Michael Cohen
  0 siblings, 0 replies; only message in thread
From: Michael Cohen @ 2002-02-26  2:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: marcelo

This is the fifth of several mails containing patches to be included in 2.4.19.  Some are worthy of dicussion prior to inclusion and have been marked as such.  The majority of these patches were found on lkml; the remaining ones have URLs listed.

This one originated on lkml some months ago.

------
Michael Cohen
OhDarn.net

--- linux-virgin/mm/slab.c	Sun Jan 13 18:02:18 2002
+++ linux-wli/mm/slab.c	Sun Jan 13 18:02:01 2002
@@ -397,10 +397,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)

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

only message in thread, other threads:[~2002-02-26  2:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-26  2:04 Submissions for 2.4.19-pre [slab estimate optimization (Balbir Singh)] Michael Cohen

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