[PATCH 1/2] jffs:2 Move erasing from write_super to GC.

Artem Bityutskiy dedekind1 at gmail.com
Tue Feb 16 04:45:35 EST 2010


On Tue, 2010-02-16 at 10:18 +0100, Joakim Tjernlund wrote:
> > Also, I think you should call it with count = 1, so that you would erase
> > only one EB at one iteration. This way you will let the GC thread do
> > other things with less latency as well.
> 
> If we reduce the count to 1 one might just as well remove count from
> jffs2_erase_pending_blocks() and make it just erase one block on each invocation,
> not sure I like that as it will be more overhead when erasing many blocks.
> 
> I figure erasing blocks is the most rewarding form of GC so there should
> be no need to reduce latency for other things, can you think of a reason?

Hmm, yes, you are right. Please, discard my "erase only 1" suggestion.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list