Skip to contentSkip to conversation

Wasted space

DISCUSSION Artem B. Bityuckiy 1 participant 2 messages Jun 29, 2004 – Jul 7, 2004 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Please, can anybody explain what means "wasted space" in JFFS2. Especially, what does (struct jffs2_eraseblock).wasted_size and (struct jffs2_sb_info).wasted_size mean?

Thanks.

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

Ok guys, if you don't know what means wasted_size fields of that structures and how it differs from dirty_space I'll teach you :-) (joke).

Wasted space is the space lost because of block structure and because of
JFFS2 data organization, i.e.
1. Old clean markers.
2. Paddings
3. Small peaces of space at the end of blocks.
4. Sometimes dirty nodes on *clean blocks* if theirs total size doesn't exceed some limit.

Wasted space is only meaningful for clean blocks (which are on clean_list). Once block is moved to dirty_list (or another list), its wasted space becomes dirty since it is assumed that this space can be reused now (after Garb. Coll.) (whereas wasted space is considered as not reusable or as lost).

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