public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Wasted space
@ 2004-06-29 11:12 Artem B. Bityuckiy
  2004-07-07 11:23 ` Artem B. Bityuckiy
  0 siblings, 1 reply; 2+ messages in thread
From: Artem B. Bityuckiy @ 2004-06-29 11:12 UTC (permalink / raw)
  To: linux-mtd

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.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Wasted space
  2004-06-29 11:12 Wasted space Artem B. Bityuckiy
@ 2004-07-07 11:23 ` Artem B. Bityuckiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem B. Bityuckiy @ 2004-07-07 11:23 UTC (permalink / raw)
  To: linux-mtd

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-07 11:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-29 11:12 Wasted space Artem B. Bityuckiy
2004-07-07 11:23 ` Artem B. Bityuckiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox