Skip to contentSkip to conversation

remove totlen from jffs2_raw_node_ref

JFFS2 [email protected] 2 participants 2 messages Nov 11, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi'

I'm trying to remove totlen from jffs2_raw_node_ref structure.

Could you confirm (or not) the following changes are needed? I understood that from http://lists.infradead.org/pipermail/linux-mtd/2003-October/008689.html

- create a jffs2_raw_node_ref structure even for the dirty nodes (in scan.c :
case JFFS2_NODETYPE_CLEANMARKER, line 632)

- create a jffs2_raw_node_ref for the obsolete nodes we add to wasted (in scan.c, line 729)

- then modify the calls to totlen in the other files and use ref_totlen()instead.

Is it enough to ensure we can calculate totlen well in every cases?

Thanks

Signature · 1 line
Pierre Ricadat
#1 lore raw
Quoted 7 lines · [email protected] wrote:

Hi'

I'm trying to remove totlen from jffs2_raw_node_ref structure.

Could you confirm (or not) the following changes are needed? I understood that from http://lists.infradead.org/pipermail/linux-mtd/2003-October/008689.html

Quoted 8 lines

- create a jffs2_raw_node_ref structure even for the dirty nodes (in scan.c :
case JFFS2_NODETYPE_CLEANMARKER, line 632)

- create a jffs2_raw_node_ref for the obsolete nodes we add to wasted (in scan.c, line 729)

- then modify the calls to totlen in the other files and use ref_totlen()instead.

Hi, I implemented this once and AFAIR, yes, it was enough.

Signature · 3 lines
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.