GC operation

Bernhard Priewasser priewasser at gmail.com
Thu Nov 3 11:22:33 EST 2005


Hello,

a question just for better understanding of JFFS2...

When and how is GC called?
jffs2_garbage_collect_pass() is called from GC thread AND after each 
writing to flash. But does a single call of jffs2_garbage_collect_pass() 
(or jffs2_garbage_collect_trigger() or SIGHUP) proceed only one node at 
a time?  For each node / for each block / ..... some loop?

Ah, another one: Are blocks on the erase_pending_list erased beside the 
GC cycles?

Hm, sorry for the annoying questions, but garbage collection can be an 
ugly and confusing thing if one is not used to it :-) Thanks for your 
assistance!

-- 
Bernhard




More information about the linux-mtd mailing list