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

Artem B. Bityuckiy
2005-08-16T07:16:55Z

On Mon, 2005-08-15 at 19:22 +0400, Artem B. Bityuckiy wrote:
> Jörn Engel wrote:
> > How about encapsulating all the page handling code in - say -
> > mm/slab.c and just handling single objects? ;)
> >
> Well, after thinking for the second time - yes, slab does the same, and
> even better If we remember about the colouring. Forget about my offer.
> :-)
>
Wait, but how will you then find the needed struct jffs2_eraseblock
object by its physical offset on flash ? Use Hash / lists ? Bad idea
(slow). Use array of pointers to each object ? It will be rather large,
and I cannot take easy the fact that we will use distinct pointers for
objects which are mostly physically contiguous in RAM (they are laying
contiguously in slabs). This probably will neglect the pluses of
colouring, which, BTW, we may also organize using my way...

Comments?

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