Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932628AbWLSB2w (ORCPT ); Mon, 18 Dec 2006 20:28:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932629AbWLSB2w (ORCPT ); Mon, 18 Dec 2006 20:28:52 -0500 Received: from smtp.osdl.org ([65.172.181.25]:39686 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932628AbWLSB2v (ORCPT ); Mon, 18 Dec 2006 20:28:51 -0500 Date: Mon, 18 Dec 2006 17:28:41 -0800 From: Andrew Morton To: David Rientjes Cc: "Rafael J. Wysocki" , Jiri Slaby , linux-pm@lists.osdl.org, Linux kernel mailing list , linux-pm@osdl.org Subject: Re: [linux-pm] OOPS: divide error while s2dsk (2.6.20-rc1-mm1) Message-Id: <20061218172841.23ea708a.akpm@osdl.org> In-Reply-To: References: <4586797B.3080007@gmail.com> <200612181646.23292.rjw@sisk.pl> <4586C99C.9020606@gmail.com> <200612182338.24843.rjw@sisk.pl> <20061218151710.32ceba0d.akpm@osdl.org> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.6; i686-pc-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: 1147 Lines: 40 On Mon, 18 Dec 2006 17:18:12 -0800 (PST) David Rientjes wrote: > On Mon, 18 Dec 2006, Andrew Morton wrote: > > > diff -puN mm/vmscan.c~shrink_all_memory-fix-lru_pages-handling mm/vmscan.c > > --- a/mm/vmscan.c~shrink_all_memory-fix-lru_pages-handling > > +++ a/mm/vmscan.c > > @@ -1484,6 +1484,16 @@ static unsigned long shrink_all_zones(un > > return ret; > > } > > > > +static unsigned long count_lru_pages(void) > > +{ > > + struct zone *zone; > > + unsigned long ret = 0; > > + > > + for_each_zone(zone); > > + ret += zone->nr_active + zone->nr_inactive; > > + return ret; > > +} > > + > > /* > > * Try to free `nr_pages' of memory, system-wide, and return the number of > > * freed pages. > > There's an extra semicolon there Sigh. coding-while-diseased. > that results in only the final zone being > used. > Actually it'll go oops. Fixed, thanks. - 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/