* [Patch]Tiny bug fix of memory hotadd (pgdat->node_present_pages are not correct).
@ 2006-03-09 10:20 Yasunori Goto
0 siblings, 0 replies; only message in thread
From: Yasunori Goto @ 2006-03-09 10:20 UTC (permalink / raw)
To: Andrew Morton; +Cc: Dave Hansen, Linux Kernel ML
Hello.
This patch is tiny bug fix for memory hotplug.
When pages are onlined, not only zone->present_pages
but also pgdat->node_present_pages should be refreshed.
This parameter is used to show information at
/sys/device/system/node/nodeX/meminfo
via si_meminfo_node().
So, it shows strange value for MemUsed which is calculated
(node_present_pages - all zones free pages).
This patch is for 2.6.16-rc5-mm3.
And I tested this on my hotplug emulation environment.
Please apply.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Index: pgdat7/mm/memory_hotplug.c
===================================================================
--- pgdat7.orig/mm/memory_hotplug.c 2006-03-09 18:32:11.000000000 +0900
+++ pgdat7/mm/memory_hotplug.c 2006-03-09 18:34:34.000000000 +0900
@@ -130,6 +130,7 @@ int online_pages(unsigned long pfn, unsi
onlined_pages++;
}
zone->present_pages += onlined_pages;
+ zone->zone_pgdat->node_present_pages += onlined_pages;
setup_per_zone_pages_min();
--
Yasunori Goto
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-09 10:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-09 10:20 [Patch]Tiny bug fix of memory hotadd (pgdat->node_present_pages are not correct) Yasunori Goto
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).