Why restrict to page aligned writes in nand_write_ecc() ?

David Woodhouse dwmw2 at infradead.org
Fri Dec 5 19:05:26 EST 2003


On Fri, 2003-12-05 at 23:45 -0100, Jasmine Strong wrote:
> On Fri, 5 Dec 2003, David Woodhouse wrote:
> 
> > > 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.
> 
> ...what about power failures?

sys_fsync() and sys_sync() trigger garbage collection to flush pending
data from the write buffer. If there's nothing to GC, we pad it with
zeroes. There's also a timed flush which behaves similarly.

-- 
dwmw2





More information about the linux-mtd mailing list