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>
This commit is contained in:
Родитель
0ed5fd1385
Коммит
e461d627d5
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче