Why restrict to page aligned writes in nand_write_ecc() ?

David Woodhouse dwmw2 at infradead.org
Fri Dec 5 18:16:54 EST 2003


On Fri, 2003-12-05 at 22:00 -0100, Jasmine Strong wrote:
> On Fri, 5 Dec 2003, Howard, Michael (MED) wrote:
> 
> > My nand flash has a 2k page size.  This restriction causes all JFFS2 writes
> > to fail.  Cleanmarkers can't be written (12 bytes) and inodes that come in
> > at 68 bytes are also rejected.  In order to get JFFS2 working, is it better
> > to remove this restriction at the driver level or must all nodes be padded
> > out to 2048 bytes in JFFS2?
> 
> For jffs2 to work properly it's pretty much essential to support partial
> page writing.  You also need to support subsequent writes to the same
> partially-written page.

No. The current JFFS2 code handles batching writes up into page-sized
chunks just fine.

-- 
dwmw2





More information about the linux-mtd mailing list