[PATCH]erase block header(revision 4)

Jörn Engel joern at wohnheim.fh-wedel.de
Mon Oct 3 10:28:51 EDT 2005

On Mon, 3 October 2005 17:50:14 +0400, Artem B. Bityutskiy wrote:
> zhao forrest wrote:
> > Artem asked me to remove allocation on the stack, so who should I listen 
> > to? This really made me very very confused :(
> Yes, I suggested to share one static clean-marker structure for both
> NAND and NOR cases.

Bad suggestion then.  Try to draw a complete graph of all possible
users to this static structure, the locking required to make it
correct, then prove its correctness.

If that didn't already scare you to death, try to anticipate future
code changes to such brittle code.

In one word: don't.

> >> What was (c->cleanmarker_size == 0) used for?
> > 
> > For the flash that don't need a clean marker.
> No, that worked for NAND this way (c->cleanmarker_size was 0)

So why is this part unnecessary now?  Or should it just be replaced by
something else?


Unless something dramatically changes, by 2015 we'll be largely
wondering what all the fuss surrounding Linux was really about.
-- Rob Enderle

More information about the linux-mtd mailing list