]> err.no Git - linux-2.6/commit
[PATCH] memory hotadd: pgdat->node_present_pages fix
authorYasunori Goto <y-goto@jp.fujitsu.com>
Fri, 10 Mar 2006 01:33:51 +0000 (17:33 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 10 Mar 2006 03:47:38 +0000 (19:47 -0800)
commitf2937be5895dbae23ff66767a2fc17793e63159c
treef236fe4b457cedbf3f7a1e2cf8a6bba9f504c74f
parent57c432b54bc34f0afacda7d9da0528ee22e78dec
[PATCH] memory hotadd: pgdat->node_present_pages fix

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).

Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/memory_hotplug.c