mm, cma: prevent nr_isolated_* counters from going negative
[deliverable/linux.git] / mm / compaction.c
index ccf97b02b85f32d38f6f68a41bedf89b9a1ee596..4a0d4b8ccde8a60c502200f7eeb8a2f521382ef1 100644 (file)
@@ -852,16 +852,8 @@ isolate_migratepages_range(struct compact_control *cc, unsigned long start_pfn,
                pfn = isolate_migratepages_block(cc, pfn, block_end_pfn,
                                                        ISOLATE_UNEVICTABLE);
 
-               /*
-                * In case of fatal failure, release everything that might
-                * have been isolated in the previous iteration, and signal
-                * the failure back to caller.
-                */
-               if (!pfn) {
-                       putback_movable_pages(&cc->migratepages);
-                       cc->nr_migratepages = 0;
+               if (!pfn)
                        break;
-               }
 
                if (cc->nr_migratepages == COMPACT_CLUSTER_MAX)
                        break;
This page took 0.023804 seconds and 5 git commands to generate.