]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mm/hotplug: prepare for removing num_physpages
authorJiang Liu <liuj97@gmail.com>
Wed, 3 Jul 2013 22:03:44 +0000 (15:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:35 +0000 (16:07 -0700)
Prepare for removing num_physpages.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Wen Congyang <wency@cn.fujitsu.com>
Cc: Tang Chen <tangchen@cn.fujitsu.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory_hotplug.c

index 5e34922124a36af7d53e35d8b8b5e26b89710dda..106602e5a70e987d79d8f9a1d001f4b863503009 100644 (file)
@@ -763,10 +763,6 @@ EXPORT_SYMBOL_GPL(restore_online_page_callback);
 
 void __online_page_set_limits(struct page *page)
 {
-       unsigned long pfn = page_to_pfn(page);
-
-       if (pfn >= num_physpages)
-               num_physpages = pfn + 1;
 }
 EXPORT_SYMBOL_GPL(__online_page_set_limits);