Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932606AbWLSBSk (ORCPT ); Mon, 18 Dec 2006 20:18:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932607AbWLSBSk (ORCPT ); Mon, 18 Dec 2006 20:18:40 -0500 Received: from mx1.cs.washington.edu ([128.208.5.52]:53061 "EHLO mx1.cs.washington.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932606AbWLSBSj (ORCPT ); Mon, 18 Dec 2006 20:18:39 -0500 Date: Mon, 18 Dec 2006 17:18:12 -0800 (PST) From: David Rientjes To: Andrew Morton 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) In-Reply-To: <20061218151710.32ceba0d.akpm@osdl.org> Message-ID: References: <4586797B.3080007@gmail.com> <200612181646.23292.rjw@sisk.pl> <4586C99C.9020606@gmail.com> <200612182338.24843.rjw@sisk.pl> <20061218151710.32ceba0d.akpm@osdl.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 935 Lines: 32 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 that results in only the final zone being used. David - 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/