[PATCH] update vm_total_pages at memory hotadd

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>
This commit is contained in:
KAMEZAWA Hiroyuki 2006-06-23 02:03:47 -07:00 committed by Linus Torvalds
parent bd1e22b8e0
commit 5a4d436159

View File

@ -160,6 +160,6 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
if (need_zonelists_rebuild) if (need_zonelists_rebuild)
build_all_zonelists(); build_all_zonelists();
vm_total_pages = nr_free_pagecache_pages();
return 0; return 0;
} }