NAND pages cache?
Thomas Gleixner
tglx at linutronix.de
Mon Nov 15 04:22:09 EST 2004
On Mon, 2004-11-15 at 08:49 +0000, David Woodhouse wrote:
> On Mon, 2004-11-15 at 11:49 +0300, Artem Bityuckiy wrote:
> > So, the obvious idea how to avoid this is to introduce something like
> > NAND pages cache. The cache will keep several NAND pages which were last
> > accessed.
> >
> > I don not know is it good to do this only in JFFS2 or on the MTD NAND layer?
>
> I thought we already did this in the MTD NAND layer, since we had to
> read whole pages there to do ECC anyway. Thomas?
We do caching only if a page is read partially. If we read a full page
we read directly into the fs buffer.
The partial reads happen when we read nodes. The full page reads happen
when we read data. That's sufficient and captures most of the double
reads on the same page.
tglx
More information about the linux-mtd
mailing list