diff options
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 83f4d0e85601..124bbfe5cc52 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -2823,22 +2823,6 @@ out: | |||
2823 | if (!populated_zone(zone)) | 2823 | if (!populated_zone(zone)) |
2824 | continue; | 2824 | continue; |
2825 | 2825 | ||
2826 | if (zone->all_unreclaimable && | ||
2827 | sc.priority != DEF_PRIORITY) | ||
2828 | continue; | ||
2829 | |||
2830 | /* Would compaction fail due to lack of free memory? */ | ||
2831 | if (COMPACTION_BUILD && | ||
2832 | compaction_suitable(zone, order) == COMPACT_SKIPPED) | ||
2833 | goto loop_again; | ||
2834 | |||
2835 | /* Confirm the zone is balanced for order-0 */ | ||
2836 | if (!zone_watermark_ok(zone, 0, | ||
2837 | high_wmark_pages(zone), 0, 0)) { | ||
2838 | order = sc.order = 0; | ||
2839 | goto loop_again; | ||
2840 | } | ||
2841 | |||
2842 | /* Check if the memory needs to be defragmented. */ | 2826 | /* Check if the memory needs to be defragmented. */ |
2843 | if (zone_watermark_ok(zone, order, | 2827 | if (zone_watermark_ok(zone, order, |
2844 | low_wmark_pages(zone), *classzone_idx, 0)) | 2828 | low_wmark_pages(zone), *classzone_idx, 0)) |