Re: GC operation

Artem B. Bityutskiy
2005-11-03T16:33:42Z

Bernhard Priewasser wrote:
> When and how is GC called?
From the GC thread and when there is no (or few) free space to write.
In the latter case the writing process is blocked and waits until GC has
freed some space.

> (or jffs2_garbage_collect_trigger() or SIGHUP) proceed only one node at
> a time? For each node / for each block / ..... some loop?
jffs2_garbage_collect_pass() moves one node at a time.

> Ah, another one: Are blocks on the erase_pending_list erased beside the
> GC cycles?
They are erased later, yes.

> Hm, sorry for the annoying questions, but garbage collection can be an
> ugly and confusing thing if one is not used to it :-)
Brr, didn't get it.. GC may be ugly if what?

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