]> Pileus Git - ~andy/linux/blobdiff - mm/compaction.c
mm/hwpoison: don't set migration type twice to avoid holding heavily contend zone...
[~andy/linux] / mm / compaction.c
index 05ccb4cc0bdb984dc2613461703587ec199804cd..c43789388cd8667536bfd9644a5bbe2cd0d35f3e 100644 (file)
@@ -1131,6 +1131,9 @@ void compact_pgdat(pg_data_t *pgdat, int order)
                .sync = false,
        };
 
+       if (!order)
+               return;
+
        __compact_pgdat(pgdat, &cc);
 }