Commit b86c5fc4 authored by David Hildenbrand's avatar David Hildenbrand Committed by Linus Torvalds

mm/memory_hotplug: update comment regarding zone shuffling

As we no longer shuffle via generic_online_page() and when undoing
isolation, we can simplify the comment.

We now effectively shuffle only once (properly) when onlining new memory.
Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarWei Yang <richard.weiyang@linux.alibaba.com>
Acked-by: default avatarMichal Hocko <mhocko@suse.com>
Cc: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Wei Yang <richard.weiyang@linux.alibaba.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Scott Cheloha <cheloha@linux.ibm.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: Wei Liu <wei.liu@kernel.org>
Link: https://lkml.kernel.org/r/20201005121534.15649-6-david@redhat.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7fef431b
...@@ -858,13 +858,10 @@ int __ref online_pages(unsigned long pfn, unsigned long nr_pages, ...@@ -858,13 +858,10 @@ int __ref online_pages(unsigned long pfn, unsigned long nr_pages,
undo_isolate_page_range(pfn, pfn + nr_pages, MIGRATE_MOVABLE); undo_isolate_page_range(pfn, pfn + nr_pages, MIGRATE_MOVABLE);
/* /*
* When exposing larger, physically contiguous memory areas to the * Freshly onlined pages aren't shuffled (e.g., all pages are placed to
* buddy, shuffling in the buddy (when freeing onlined pages, putting * the tail of the freelist when undoing isolation). Shuffle the whole
* them either to the head or the tail of the freelist) is only helpful * zone to make sure the just onlined pages are properly distributed
* for maintaining the shuffle, but not for creating the initial * across the whole freelist - to create an initial shuffle.
* shuffle. Shuffle the whole zone to make sure the just onlined pages
* are properly distributed across the whole freelist. Make sure to
* shuffle once pageblocks are no longer isolated.
*/ */
shuffle_zone(zone); shuffle_zone(zone);
......
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