From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
Rik van Riel <riel@conectiva.com.br>
Subject: [PATCH] total_free_shortage() using zone_free_shortage()
Date: Mon, 6 Aug 2001 20:19:56 -0300 (BRT) [thread overview]
Message-ID: <Pine.LNX.4.21.0108062015430.11216-100000@freak.distro.conectiva> (raw)
Linus,
The following patch changes total_free_shortage() to use
zone_free_shortage() to calculate the sum of perzone free shortages.
This way we isolate the calculation variables in zone_free_shortage().
Against 2.4.8-pre4. Please apply.
diff -Nur linux.orig/mm/vmscan.c linux/mm/vmscan.c
--- linux.orig/mm/vmscan.c Mon Aug 6 21:29:11 2001
+++ linux/mm/vmscan.c Mon Aug 6 21:37:53 2001
@@ -807,12 +807,8 @@
int i;
for(i = 0; i < MAX_NR_ZONES; i++) {
zone_t *zone = pgdat->node_zones+ i;
- if (zone->size && (zone->inactive_clean_pages +
- zone->free_pages < zone->pages_min)) {
- sum += zone->pages_min;
- sum -= zone->free_pages;
- sum -= zone->inactive_clean_pages;
- }
+
+ sum += zone_free_shortage(zone);
}
pgdat = pgdat->node_next;
} while (pgdat);
next reply other threads:[~2001-08-07 0:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-06 23:19 Marcelo Tosatti [this message]
2001-08-08 4:00 ` [PATCH] total_free_shortage() using zone_free_shortage() Linus Torvalds
2001-08-08 3:24 ` Marcelo Tosatti
2001-08-08 5:12 ` Linus Torvalds
[not found] <Pine.LNX.4.21.0108080057030.13081-100000@freak.distro.conectiva>
2001-08-08 6:08 ` Linus Torvalds
2001-08-08 6:43 ` Linus Torvalds
2001-08-08 5:32 ` Marcelo Tosatti
2001-08-08 7:19 ` Linus Torvalds
2001-08-08 7:03 ` Linus Torvalds
2001-08-08 5:46 ` Marcelo Tosatti
2001-08-08 7:24 ` Linus Torvalds
2001-08-08 12:20 ` Rik van Riel
2001-08-08 20:23 ` Marcelo Tosatti
2001-08-08 23:17 ` Mark Hahn
2001-08-08 23:20 ` Linus Torvalds
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=Pine.LNX.4.21.0108062015430.11216-100000@freak.distro.conectiva \
--to=marcelo@conectiva.com.br \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@conectiva.com.br \
--cc=torvalds@transmeta.com \
/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;
as well as URLs for NNTP newsgroup(s).