Commit 6815bf3f authored by Joonsoo Kim's avatar Joonsoo Kim Committed by Linus Torvalds
Browse files

mm/compaction: respect ignore_skip_hint in update_pageblock_skip

update_pageblock_skip() only fits to compaction which tries to isolate
by pageblock unit.  If isolate_migratepages_range() is called by CMA, it
try to isolate regardless of pageblock unit and it don't reference
get_pageblock_skip() by ignore_skip_hint.  We should also respect it on
update_pageblock_skip() to prevent from setting the wrong information.
Signed-off-by: default avatarJoonsoo Kim <>
Acked-by: default avatarVlastimil Babka <>
Reviewed-by: default avatarNaoya Horiguchi <>
Reviewed-by: default avatarWanpeng Li <>
Cc: Christoph Lameter <>
Cc: Rafael Aquini <>
Cc: Vlastimil Babka <>
Cc: Wanpeng Li <>
Cc: Mel Gorman <>
Cc: Rik van Riel <>
Cc: Zhang Yanfei <>
Cc: <>	[3.7+]
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: Linus Torvalds <tor...
parent b0e5fd73
......@@ -134,6 +134,10 @@ static void update_pageblock_skip(struct compact_control *cc,
bool migrate_scanner)
struct zone *zone = cc->zone;
if (cc->ignore_skip_hint)
if (!page)
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