diff --git a/mm/compaction.c b/mm/compaction.c index 3d22d5068e7f325b3810243bdd309090afb4d75a..e0f3b5241fa7a11f4a548f4ac8cc5b1e63ead849 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1370,7 +1370,7 @@ fast_isolate_freepages(struct compact_control *cc) count_compact_events(COMPACTISOLATED, nr_isolated); } else { /* If isolation fails, abort the search */ - order = -1; + order = cc->search_order + 1; page = NULL; } }