GC operation

Bernhard Priewasser
2005-11-03T16:22:46Z

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