Re: [PATCH]fs/jffs2/wbuf.c: add compatibility support for OOB data block

Artem B. Bityuckiy
2005-08-15T14:01:07Z

Jörn Engel wrote:
> My preferred approach would be to allocate a slab cache for jffs2
> erase blocks. Then we either need a (much smaller) array of pointers
> to the slab objects or maintain them as linked lists. But then again,
> it wouldn't be the first ugly hack in jffs2. Go right ahead if you
> really want to!
>

Only not slab cache, what for? We allocate the erasblock structure once
on mount and deallocate them all once on unmount. No need to use a slab
cache. The merit of the slab cache is very fast allocations, and we will
not make use of this property anyway. No need to use slab cache here at all.

--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.