]> err.no Git - linux-2.6/commitdiff
[PATCH] update vm_total_pages at memory hotadd
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Fri, 23 Jun 2006 09:03:47 +0000 (02:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:52 +0000 (07:42 -0700)
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/memory_hotplug.c

index 1b1ac3db218785f3e868602de0165a48c6519954..841a077d5aeb0d3423ecba8ed5d81efdd72c2442 100644 (file)
@@ -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;
 }