From: Andrew Morton Subject: Re: Boot failure with ext2 and initrds Date: Wed, 15 Nov 2006 22:39:37 -0800 Message-ID: <20061115223937.fa7c1bad.akpm@osdl.org> References: <20061114014125.dd315fff.akpm@osdl.org> <20061114184919.GA16020@skynet.ie> <20061114113120.d4c22b02.akpm@osdl.org> <20061115214534.72e6f2e8.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.osdl.org ([65.172.181.4]:1738 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1161905AbWKPGjr (ORCPT ); Thu, 16 Nov 2006 01:39:47 -0500 To: Hugh Dickins , Mel Gorman , "Martin J. Bligh" , linux-kernel@vger.kernel.org, "linux-ext4@vger.kernel.org" , Mingming Cao In-Reply-To: <20061115214534.72e6f2e8.akpm@osdl.org> Sender: linux-ext4-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org On Wed, 15 Nov 2006 21:45:34 -0800 Andrew Morton wrote: > --- a/fs/ext2/balloc.c~a > +++ a/fs/ext2/balloc.c > @@ -524,7 +524,7 @@ bitmap_search_next_usable_block(ext2_grp > ext2_grpblk_t next; > > next = ext2_find_next_zero_bit(bh->b_data, maxblocks, start); > - if (next >= maxblocks) > + if (next >= start + maxblocks) > return -1; > return next; > } > _ > > Anyway, I think that's the bug. Changed my mind. Drat.