Wasted space

Artem B. Bityuckiy abityuckiy at yandex.ru
Wed Jul 7 07:23:09 EDT 2004


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).

-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.




More information about the linux-mtd mailing list