[PATCH][JFFS2] Fix garbage collector block search

David Woodhouse dwmw2 at infradead.org
Wed Apr 23 07:32:30 EDT 2008


On Wed, 2008-04-23 at 15:31 +0400, Alexander Belyakov wrote:
> On Tue, Apr 22, 2008 at 8:47 PM, David Woodhouse <dwmw2 at infradead.org> wrote:
> >
> > On Fri, 2008-01-18 at 19:28 +0300, Alexander Belyakov wrote:
> >  >
> >  > Question. What is success criteria for jffs2_garbage_collect_pass() execution?
> >  >
> >
> >  It depends. There are two callers of jffs2_garbage_collect_pass().
> >
> >  For jffs2_flush_wbuf_gc() it's not progress, so it should be handled
> >  like failure.
> >
> >  For jffs2_reserve_space(), we can treat it as success... or we can have
> >  a special case which calls jffs2_erase_pending_blocks() right away to
> >  wait for the block to erase.
> >
> >  How about this... does it solve the problem for you?
> >
> 
> I like this special case for jffs2_reserve_space(). It solves the problem.

I'm playing with it now, with the intent of committing it. Can you show
me how to reproduce the problem?

-- 
dwmw2




More information about the linux-mtd mailing list