* [Patch] Fix calculation of grow_pgdat_span() in mm/memory_hotplug.c
@ 2005-12-13 13:20 Yasunori Goto
2005-12-13 16:49 ` Dave Hansen
0 siblings, 1 reply; 2+ messages in thread
From: Yasunori Goto @ 2005-12-13 13:20 UTC (permalink / raw)
To: Dave Hansen
Cc: Andrew Morton, linux-mm, Linux Hotplug Memory Support, Linux Kernel ML
Dave-san.
CC: Andrew-san.
I realized 2.6.15-rc5 still has a bug for memory hotplug.
The calculation for node_spanned_pages at grow_pgdat_span() is
clearly wrong. This is patch for it.
(Please see grow_zone_span() to compare. It is correct.)
Thanks.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Index: zone_reclaim/mm/memory_hotplug.c
===================================================================
--- zone_reclaim.orig/mm/memory_hotplug.c 2005-12-13 21:38:16.000000000 +0900
+++ zone_reclaim/mm/memory_hotplug.c 2005-12-13 21:39:14.000000000 +0900
@@ -104,7 +104,7 @@ static void grow_pgdat_span(struct pglis
pgdat->node_start_pfn = start_pfn;
if (end_pfn > old_pgdat_end_pfn)
- pgdat->node_spanned_pages = end_pfn - pgdat->node_spanned_pages;
+ pgdat->node_spanned_pages = end_pfn - pgdat->node_start_pfn;
}
int online_pages(unsigned long pfn, unsigned long nr_pages)
--
Yasunori Goto
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Patch] Fix calculation of grow_pgdat_span() in mm/memory_hotplug.c
2005-12-13 13:20 [Patch] Fix calculation of grow_pgdat_span() in mm/memory_hotplug.c Yasunori Goto
@ 2005-12-13 16:49 ` Dave Hansen
0 siblings, 0 replies; 2+ messages in thread
From: Dave Hansen @ 2005-12-13 16:49 UTC (permalink / raw)
To: Yasunori Goto
Cc: Andrew Morton, linux-mm, Linux Hotplug Memory Support, Linux Kernel ML
On Tue, 2005-12-13 at 22:20 +0900, Yasunori Goto wrote:
> Dave-san.
> CC: Andrew-san.
>
> I realized 2.6.15-rc5 still has a bug for memory hotplug.
> The calculation for node_spanned_pages at grow_pgdat_span() is
> clearly wrong. This is patch for it.
Clearly wrong is the term for it. Thanks for the fix.
-- Dave
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-13 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-13 13:20 [Patch] Fix calculation of grow_pgdat_span() in mm/memory_hotplug.c Yasunori Goto
2005-12-13 16:49 ` Dave Hansen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox