Re: New dcache not using slab allocator?

Erik Andersen (andersee@debian.org)
Sun, 3 Aug 1997 22:39:16 -0600


Aaron Tiensivu wrote:
> Hmmm... browsing dcache.c in the fs directory I noticed that the
> "evil" kmalloc is still being used. Is there a reason for not
> taking advantage of the slab allocator?
>
> Inquiring minds want to know. :)
>

Umm. kmalloc()/kfree() are now built on top of the slab allocator.
Take a look at linux/mm/slab.c and you will find these nice functions.
That means nobody has to do anything to take advantage of slab.
If you have used kmalloc in the kernel, you are already using slab.

-Erik

--
Erik B. Andersen   Web:    http://www.inconnect.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--