public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: linux-kernel@vger.kernel.org
Subject: Re: lazy_buddy-2.5.25-1
Date: Wed, 10 Jul 2002 22:02:21 -0700	[thread overview]
Message-ID: <20020711050221.GC27093@holomorphy.com> (raw)
In-Reply-To: <20020711044956.GB27093@holomorphy.com>

On Wed, Jul 10, 2002 at 09:49:56PM -0700, William Lee Irwin III wrote:
> Ugh, forward port breakage. Ran into this in a different patch but
> realized it was broken here too. Sorry folks. You'll need this on
> top of the prior post.

Even worse, I spotted another (thankfully more minor) bug while still
peeking at this... okay, back to more urgent things.


Cheers,
Bill


# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.631   -> 1.632  
#	     mm/page_alloc.c	1.126   -> 1.127  
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/07/10	wli@tisifone.holomorphy.com	1.632
# page_alloc.c:
#   Correct nr_deferred_pages() calculation.
# --------------------------------------------
#
diff --minimal -Nru a/mm/page_alloc.c b/mm/page_alloc.c
--- a/mm/page_alloc.c	Wed Jul 10 21:59:45 2002
+++ b/mm/page_alloc.c	Wed Jul 10 21:59:45 2002
@@ -739,8 +739,8 @@
 	for (pgdat = pgdat_list; pgdat; pgdat = pgdat->node_next) {
 		node_zones = pgdat->node_zones;
 		for (i = 0; i < MAX_NR_ZONES; ++i) {
-			for (order = 0; order < MAX_ORDER; ++order)
-				pages += node_zones[i].free_area[order].locally_free;
+			for (order = MAX_ORDER; order >= 0; --order)
+				pages = 2*pages + node_zones[i].free_area[order].locally_free;
 		}
 	}
 	return pages;

  reply	other threads:[~2002-07-11  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-10  8:59 lazy_buddy-2.5.25-1 William Lee Irwin III
2002-07-11  4:49 ` lazy_buddy-2.5.25-1 William Lee Irwin III
2002-07-11  5:02   ` William Lee Irwin III [this message]
2002-07-11  5:11     ` lazy_buddy-2.5.25-1 William Lee Irwin III
2002-07-13  6:22 ` lazy_buddy-2.5.25-1 William Lee Irwin III
2002-07-13  6:29   ` lazy_buddy-2.5.25-1 William Lee Irwin III

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=20020711050221.GC27093@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox