diff options
author | 2024-03-20 14:02:13 -0400 | |
---|---|---|
committer | 2024-04-25 20:56:04 -0700 | |
commit | f37c0f6876a8eabe1477c87860460bc181f6cdbb (patch) | |
tree | 751e45d6b3c807a9178d9d26a362c0888b9c756c /mm/debug_page_alloc.c | |
parent | mm: page_alloc: close migratetype race between freeing and stealing (diff) | |
download | wireguard-linux-f37c0f6876a8eabe1477c87860460bc181f6cdbb.tar.xz wireguard-linux-f37c0f6876a8eabe1477c87860460bc181f6cdbb.zip |
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
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>
Diffstat (limited to 'mm/debug_page_alloc.c')
0 files changed, 0 insertions, 0 deletions