From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from co202.xi-lite.net ([149.6.83.202]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qcki2-00068r-Fz for linux-mtd@lists.infradead.org; Fri, 01 Jul 2011 20:53:07 +0000 Date: Fri, 1 Jul 2011 22:52:05 +0200 From: Ivan Djelic To: Peter Barada Subject: Re: Preventing JFFS2 partial page writes? Message-ID: <20110701205205.GA4600@parrot.com> References: <4DF789FC.1030305@gmail.com> <1308722655.18119.40.camel@sauron> <4E020A36.6070708@gmail.com> <1308943581.13493.15.camel@koala> <4E089441.3010809@gmail.com> <1309253646.23597.58.camel@sauron> <4E0A23D3.8060303@gmail.com> <1309329223.23597.116.camel@sauron> <4E0CBAE5.6050604@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <4E0CBAE5.6050604@gmail.com> Cc: "linux-mtd@lists.infradead.org" , Peter Barada , "dedekind1@gmail.com" List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Jun 30, 2011 at 07:05:25PM +0100, Peter Barada wrote: (...) > >> Another issue this exposes is that JFFS2 reads/compares the cleanmarker > >> w/o any ECC in the marker data to verify its validity - if a bitflip in > >> an unECC'd cleanmarker is read back, then I think JFFS2 will fail to use > >> that block. > > No, I think what JFFS2 should do is just assume the eraseblock needs > > erasure and just erase it. The whole purpose of clean markers is to > > erase less. If it is corrupted - we just do an extra erase - not big > > deal. > How's the best way to do this? That would make this whole problem just > go away, and make MLC devices much more happy with JFFS2. I think Artem was just explaining that a single corrupted cleanmarker is no big deal, it just forces JFFS2 to perform an extra erase. That does not mean you can get rid of cleanmarkers, because systematically erasing a block before programming it would seriously degrade write performance. -- Best Regards, Ivan