X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Fmemory_hotplug.c;h=1fe76d963ac21a2d09d5d8cb8e21e687163202f1;hb=eaeae0cc985fa1df753da7edc8d02635cbc1ba39;hp=f6d4af8af8a8f5a491f837d9bb9c108313ecb7f0;hpb=eea60caef610c7a6c58c0de9c80ae1e438e01301;p=linux-2.6 diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index f6d4af8af8..1fe76d963a 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -42,7 +42,6 @@ extern int sparse_add_one_section(struct zone *zone, unsigned long start_pfn, int nr_pages); static int __add_section(struct zone *zone, unsigned long phys_start_pfn) { - struct pglist_data *pgdat = zone->zone_pgdat; int nr_pages = PAGES_PER_SECTION; int ret; @@ -131,6 +130,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages) onlined_pages++; } zone->present_pages += onlined_pages; + zone->zone_pgdat->node_present_pages += onlined_pages; setup_per_zone_pages_min();