UPSTREAM: mm: page_alloc: set migratetype inside move_freepages()
This avoids changing migratetype after move_freepages() or move_freepages_block(), which is error prone. It also prepares for upcoming changes to fix move_freepages() not moving free pages partially in the range. Link: https://lkml.kernel.org/r/20240320180429.678181-9-hannes@cmpxchg.org Change-Id: Id62a91c8023afa27a84aa40ed912b650e8a112f2 Signed-off-by:Zi Yan <ziy@nvidia.com> Signed-off-by:
Johannes Weiner <hannes@cmpxchg.org> Reviewed-by:
Vlastimil Babka <vbabka@suse.cz> Tested-by:
Baolin Wang <baolin.wang@linux.alibaba.com> Cc: David Hildenbrand <david@redhat.com> Cc: "Huang, Ying" <ying.huang@intel.com> Cc: Mel Gorman <mgorman@techsingularity.net> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> (cherry picked from commit f37c0f68) Bug: 420771453 Bug: 427173548 Signed-off-by:
Kalesh Singh <kaleshsingh@google.com> Signed-off-by:
Wenchao Hao <haowenchao@xiaomi.com>
Loading
Please sign in to comment