|
@@ -1681,7 +1681,7 @@ enum compact_result try_to_compact_pages(gfp_t gfp_mask, unsigned int order,
|
|
*contended = COMPACT_CONTENDED_NONE;
|
|
*contended = COMPACT_CONTENDED_NONE;
|
|
|
|
|
|
/* Check if the GFP flags allow compaction */
|
|
/* Check if the GFP flags allow compaction */
|
|
- if (!order || !may_enter_fs || !may_perform_io)
|
|
|
|
|
|
+ if (!may_enter_fs || !may_perform_io)
|
|
return COMPACT_SKIPPED;
|
|
return COMPACT_SKIPPED;
|
|
|
|
|
|
trace_mm_compaction_try_to_compact_pages(order, gfp_mask, mode);
|
|
trace_mm_compaction_try_to_compact_pages(order, gfp_mask, mode);
|