diff options
Diffstat (limited to 'mm')
-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, | |||
869 | struct zone *zone; | 869 | struct zone *zone; |
870 | int rc = COMPACT_SKIPPED; | 870 | int rc = COMPACT_SKIPPED; |
871 | 871 | ||
872 | /* | 872 | /* Check if the GFP flags allow compaction */ |
873 | * Check whether it is worth even starting compaction. The order check is | ||
874 | * made because an assumption is made that the page allocator can satisfy | ||
875 | * the "cheaper" orders without taking special steps | ||
876 | */ | ||
877 | if (!order || !may_enter_fs || !may_perform_io) | 873 | if (!order || !may_enter_fs || !may_perform_io) |
878 | return rc; | 874 | return rc; |
879 | 875 | ||