Commit 7393dc45 authored by Joonyoung Shim's avatar Joonyoung Shim Committed by Linus Torvalds
Browse files

revert "mm/memory-hotplug: fix lowmem count overflow when offline pages"

This reverts commit cea27eb2 ("mm/memory-hotplug: fix lowmem count
overflow when offline pages").

The fixed bug by commit cea27eb2 was fixed to another way by commit
3dcc0571 ("mm: correctly update zone->managed_pages").  That commit
enhances memory_hotplug.c to adjust totalhigh_pages when hot-removing
memory, for details please refer to:

As a result, commit cea27eb2

 currently causes duplicated decreasing
of totalhigh_pages, thus the revert.
Signed-off-by: default avatarJoonyoung Shim <>
Reviewed-by: default avatarWanpeng Li <>
Cc: Jiang Liu <>
Cc: KOSAKI Motohiro <>
Cc: Bartlomiej Zolnierkiewicz <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 5c282e85
......@@ -6366,10 +6366,6 @@ __offline_isolated_pages(unsigned long start_pfn, unsigned long end_pfn)
if (PageHighMem(page))
totalhigh_pages -= 1 << order;
for (i = 0; i < (1 << order); i++)
pfn += (1 << order);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment