From: KAMEZAWA Hiroyuki Date: Fri, 23 Jun 2006 09:03:47 +0000 (-0700) Subject: [PATCH] update vm_total_pages at memory hotadd X-Git-Tag: v2.6.18-rc1~1081^2~163 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a4d43615921575b0c8299a5407ce4836e4138fd;p=linux-2.6 [PATCH] update vm_total_pages at memory hotadd Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 1b1ac3db21..841a077d5a 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -160,6 +160,6 @@ int online_pages(unsigned long pfn, unsigned long nr_pages) if (need_zonelists_rebuild) build_all_zonelists(); - + vm_total_pages = nr_free_pagecache_pages(); return 0; }