From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fg-out-1718.google.com ([72.14.220.153]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1JodCN-0007SV-Uj for linux-mtd@lists.infradead.org; Wed, 23 Apr 2008 11:31:40 +0000 Received: by fg-out-1718.google.com with SMTP id 22so2505986fge.26 for ; Wed, 23 Apr 2008 04:31:37 -0700 (PDT) Message-ID: Date: Wed, 23 Apr 2008 15:31:37 +0400 From: "Alexander Belyakov" To: "David Woodhouse" Subject: Re: [PATCH][JFFS2] Fix garbage collector block search In-Reply-To: <1208882833.9212.629.camel@pmac.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080114132843.GA15710@lazybastard.org> <20080115133350.GA22338@lazybastard.org> <1208882833.9212.629.camel@pmac.infradead.org> Cc: Alexander Belyakov , =?UTF-8?Q?J=C3=B6rn_Engel?= , "linux-mtd@lists.infradead.org" List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Apr 22, 2008 at 8:47 PM, David Woodhouse 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