diff options
-rw-r--r-- | mm/compaction.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index 7fcd3a52e68d..7168edc7592c 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -869,11 +869,7 @@ unsigned long try_to_compact_pages(struct zonelist *zonelist, struct zone *zone; int rc = COMPACT_SKIPPED; - /* - * Check whether it is worth even starting compaction. The order check is - * made because an assumption is made that the page allocator can satisfy - * the "cheaper" orders without taking special steps - */ + /* Check if the GFP flags allow compaction */ if (!order || !may_enter_fs || !may_perform_io) return rc; |