Question: jffs2_mark_node_obsolete() with NAND

priewasser at googlemail.com priewasser at googlemail.com
Thu Jan 5 13:39:55 EST 2006


Hi all,

as far as i understand, jffs2_mark_node_obsolete() gets the
raw_node_ref of the flash node to delete, flash_reads the appropriate
common header in a struct jffs2_unknown_node, sets the node type to
~JFFS2_NODE_ACCURATE and writes the common header into the flash. The
existing common header is overwritten. This works for NOR as there is
some "valid" bit that flips from 1->0 (?). But what about NAND? I do
not understand how obsoleting nodes can work in the described
overwrite-way, with a 2KiB-granularity and wbuf......

Thanks for your answer,
Bernhard




More information about the linux-mtd mailing list