lkml.org 
[lkml]   [2002]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] trivial 2.4.19-rc3 zone init printk
Date
Change:

On node 0 totalpages: 61031 <--- not including holes
zone(0): 65172 pages. <--- including holes
zone(1): 0 pages. ...
zone(2): 0 pages.

to:

On node 0 totalpages: 61031 <--- not including holes
DMA zone: 61031 pages <--- not including holes
Normal zone: 0 pages
HighMem zone: 0 pages


--- linux-2.4.19-rc3/mm/page_alloc.c Wed Jul 31 04:29:27 2002
+++ linux-2.4.19-rc3.new/mm/page_alloc.c Wed Jul 31 04:33:50 2002
@@ -692,10 +692,9 @@
BUG();

totalpages = 0;
- for (i = 0; i < MAX_NR_ZONES; i++) {
- unsigned long size = zones_size[i];
- totalpages += size;
- }
+ for (i = 0; i < MAX_NR_ZONES; i++)
+ totalpages += zones_size[i];
+
realtotalpages = totalpages;
if (zholes_size)
for (i = 0; i < MAX_NR_ZONES; i++)
@@ -733,7 +732,7 @@
if (zholes_size)
realsize -= zholes_size[j];

- printk("zone(%lu): %lu pages.\n", j, size);
+ printk(" %s zone: %lu pages\n", zone_names[j], realsize);
zone->size = size;
zone->name = zone_names[j];
zone->lock = SPIN_LOCK_UNLOCKED;
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.047 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site