mm/memory_hotplug: document why shuffle_zone() is relevant

It's not completely obvious why we have to shuffle the complete zone -
introduced in commit e900a918b098 ("mm: shuffle initial free memory to
improve memory-side-cache utilization") - because some sort of shuffling
is already performed when onlining pages via __free_one_page(), placing
MAX_ORDER-1 pages either to the head or the tail of the freelist.  Let's
document why we have to shuffle the complete zone when exposing larger,
contiguous physical memory areas to the buddy.

Signed-off-by: David Hildenbrand <>
Signed-off-by: Andrew Morton <>
Acked-by: Dan Williams <>
Acked-by: Michal Hocko <>
Cc: Alexander Duyck <>
Cc: Dan Williams <>
Cc: Michal Hocko <>
Signed-off-by: Linus Torvalds <>
1 file changed