Re: [PATCH] mm/slab.c, kernel <2.4.20>

From: Marc-Christian Petersen (m.c.p@wolk-project.de)
Date: Wed Jan 08 2003 - 17:12:32 EST


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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:25 EST