Commit 2f7f24ec authored by Kent Liu's avatar Kent Liu Committed by Linus Torvalds
Browse files

memory-hotplug: don't calculate vm_total_pages twice when rebuilding zonelists in online_pages()

If zonelist is required to be rebuilt in online_pages(), there is no need
to recalculate vm_total_pages in that function, as it has been updated in
the call build_all_zonelists().
Signed-off-by: default avatarKent Liu <>
Acked-by: default avatarKAMEZAWA Hiroyuki <>
Cc: Yasunori Goto <>
Cc: Andy Whitcroft <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent af370fb8
......@@ -429,7 +429,9 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
if (need_zonelists_rebuild)
vm_total_pages = nr_free_pagecache_pages();
vm_total_pages = nr_free_pagecache_pages();
if (onlined_pages)
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