All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: David Rientjes <rientjes@cs.washington.edu>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
	Jiri Slaby <jirislaby@gmail.com>,
	linux-pm@lists.osdl.org,
	Linux kernel mailing list <linux-kernel@vger.kernel.org>,
	linux-pm@osdl.org
Subject: Re: [linux-pm] OOPS: divide error while s2dsk (2.6.20-rc1-mm1)
Date: Mon, 18 Dec 2006 17:28:41 -0800	[thread overview]
Message-ID: <20061218172841.23ea708a.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.64N.0612181716110.10074@attu4.cs.washington.edu>

On Mon, 18 Dec 2006 17:18:12 -0800 (PST)
David Rientjes <rientjes@cs.washington.edu> 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.

      reply	other threads:[~2006-12-19  1:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-18 11:20 OOPS: divide error while s2dsk (2.6.20-rc1-mm1) Jiri Slaby
2006-12-18 11:20 ` Jiri Slaby
2006-12-18 15:46 ` Rafael J. Wysocki
2006-12-18 15:46   ` [linux-pm] " Rafael J. Wysocki
2006-12-18 17:02   ` Jiri Slaby
2006-12-18 20:59     ` Andrew Morton
2006-12-18 22:38     ` Rafael J. Wysocki
2006-12-18 22:44       ` Nigel Cunningham
2006-12-18 23:09         ` Rafael J. Wysocki
2006-12-18 23:16           ` Nigel Cunningham
2006-12-18 23:17       ` Andrew Morton
2006-12-19  0:52         ` Rafael J. Wysocki
2006-12-19  1:18         ` David Rientjes
2006-12-19  1:28           ` Andrew Morton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061218172841.23ea708a.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.osdl.org \
    --cc=linux-pm@osdl.org \
    --cc=rientjes@cs.washington.edu \
    --cc=rjw@sisk.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.