Lost space on JFFS2 partition

David Woodhouse dwmw2 at infradead.org
Thu Aug 28 07:27:23 EDT 2003


On Thu, 2003-08-28 at 11:28 +0100, John Hall wrote:
> I wasn't sure how JFFS2 does its writes, i.e. whether it did each write
> immediately to the flash, or whether it would build a page or block's
> worth before writing to the flash. Now I see that each write is done
> immediately.

Not on NAND. We _can't_ just write out every tiny node as it happens,
since we could violate the writes-per-page limit for NAND. We batch
writes with a write-behind buffer, flushing it if it's got dirty data in
after a certain amount of time. It was that flushing which was causing
the problem. Now we trigger garbage-collection to fill it, instead of
just padding and wasting the space.


-- 
dwmw2




More information about the linux-mtd mailing list