diff options
author | Jiang Liu <liuj97@gmail.com> | 2013-07-03 18:03:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:07:35 -0400 |
commit | e461d627d5c0957457eb354843f3c29b50646d63 (patch) | |
tree | 6957d178e39bf2372e93bf1cbdb22b1a393e651b /mm/memory_hotplug.c | |
parent | 0ed5fd138539940a493dc69359cb2f49de70ad89 (diff) |
mm/hotplug: prepare for removing num_physpages
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>
Diffstat (limited to 'mm/memory_hotplug.c')
-rw-r--r-- | mm/memory_hotplug.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 5e34922124a3..106602e5a70e 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c | |||
@@ -763,10 +763,6 @@ EXPORT_SYMBOL_GPL(restore_online_page_callback); | |||
763 | 763 | ||
764 | void __online_page_set_limits(struct page *page) | 764 | void __online_page_set_limits(struct page *page) |
765 | { | 765 | { |
766 | unsigned long pfn = page_to_pfn(page); | ||
767 | |||
768 | if (pfn >= num_physpages) | ||
769 | num_physpages = pfn + 1; | ||
770 | } | 766 | } |
771 | EXPORT_SYMBOL_GPL(__online_page_set_limits); | 767 | EXPORT_SYMBOL_GPL(__online_page_set_limits); |
772 | 768 | ||