Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161927AbWKPGjs (ORCPT ); Thu, 16 Nov 2006 01:39:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161922AbWKPGjs (ORCPT ); Thu, 16 Nov 2006 01:39:48 -0500 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 Date: Wed, 15 Nov 2006 22:39:37 -0800 From: Andrew Morton To: Hugh Dickins , Mel Gorman , "Martin J. Bligh" , linux-kernel@vger.kernel.org, "linux-ext4@vger.kernel.org" , Mingming Cao Subject: Re: Boot failure with ext2 and initrds Message-Id: <20061115223937.fa7c1bad.akpm@osdl.org> In-Reply-To: <20061115214534.72e6f2e8.akpm@osdl.org> References: <20061114014125.dd315fff.akpm@osdl.org> <20061114184919.GA16020@skynet.ie> <20061114113120.d4c22b02.akpm@osdl.org> <20061115214534.72e6f2e8.akpm@osdl.org> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 692 Lines: 24 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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/