Skip to contentSkip to conversation

remove the 'totlen' field from node_ref

DISCUSSION Artem B. Bityuckiy 2 participants 2 messages Nov 15, 2004 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hello,

I see there were efforts to remove the 'totlen' field from the jffs2_raw_node_ref structure. But it is not done yet.

As I understand, in order to succesfullt done this improvements, all the space in flash must be represented by means of nodes. This means, we should keep padding node references (jffs2_raw_node_ref for paddigs) in-core too.

Why is this work not done yet? Are there some difficulties? May be some problems arise when we pad to the end of NAND page/Flash block but the padding length is not sufficient to write the padding node and we just write some pattern?

Thanks.

Signature · 3 lines
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
#1 lore raw
Quoted 9 lines · Artem B. Bityuckiy

Hello,

I see there were efforts to remove the 'totlen' field from the jffs2_raw_node_ref structure. But it is not done yet.

As I understand, in order to succesfullt done this improvements, all the space in flash must be represented by means of nodes. This means, we should keep padding node references (jffs2_raw_node_ref for paddigs) in-core too.

Correct.

Quoted 4 lines

Why is this work not done yet? Are there some difficulties? May be some problems arise when we pad to the end of NAND page/Flash block but the padding length is not sufficient to write the padding node and we just write some pattern?

No, that's not a problem. We can quite happily keep a raw_node_ref which describes that, and we can do so at mount time too. Mostly we just need to fix the mount code to generate obsolete node refs for dirty space rather than just ignoring it and moving on.

Doing that alone is fairly simple. The main reason I haven't done it yet is because it would need a _lot_ of testing, probably with a period of checking against the real __totlen field and complaining if they differ. I haven't really had enough time to do the amount of testing I'd like before I release such a change.

Signature · 1 line
dwmw2