[PATCH][JFFS2] Fix garbage collector block search
Alexander Belyakov
abelyako at googlemail.com
Wed Apr 23 07:31:37 EDT 2008
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.
Thank you,
Alexander
More information about the linux-mtd
mailing list