[PATCH/RFC] MTD: Striping layer core

Jörn Engel joern at wohnheim.fh-wedel.de
Fri Mar 31 06:59:04 EST 2006


On Fri, 31 March 2006 15:55:10 +0400, Artem B. Bityutskiy wrote:
> > 
> Add an c->flags field to the per-JFFS2 structure. Initialize it on mount
> properly. Then
> 
> #define jffs2_can_mark_obsolete(c) (c->flags & JFFS2_CAN_MARK_OBSOLETE)
> 
> Don't try to jam this to MTD please.

Whether the flash can mark things obsolete is a flash feature.  At
least this is based on a flash feature.  So maybe we should rename it
to MTD_CAN_FLIP_SINGLE_BITS or similar and then have

	c->can_mark_obsolete = c->mtd & MTD_CAN_FLIP_SINGLE_BITS;

That would make sense, yes.

Jörn

-- 
The cost of changing business rules is much more expensive for software
than for a secretaty.
-- unknown




More information about the linux-mtd mailing list