JFFS2-on-DataFlash : 2 - DataFlash support

Andrew Victor andrew at sanpeople.com
Mon Feb 7 08:27:23 EST 2005


hi Jörn,
 
> > Since we don't need cleanmarkers on DataFlash, we return
> > BLK_STATE_CLEANMARKER from jffs2_scan_eraseblock() so that the block
> > rather gets added directly to the 'free_list'.
> 
> Why don't you need cleanmarkers?
> 
> With all other flash types, cleanmarkers catch the case where your
> power fails during flash erase.  If that happens, you cannot trust the
> eraseblock.  It could be fully erased, it could also just _look_ as if
> it was and fail later on.  Bad.
> 
> Now you claim that this is not the case for DataFlash.  So I'd like
> some explanation before I trust your code.

We don't need cleanmarkers since the DataFlash device will automatically
performs a page-erase before writing to the page.


Regards,
  Andrew Victor






More information about the linux-mtd mailing list