X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=mm%2Finternal.h;h=1a8a0d4b687a6296c81787d1c88c2ff9b1ff5bd8;hb=be4510ce4de1cc29c8a0666e9ce1278036a8d893;hp=07b67361a40a2d4a83ad4e005a96b81d63e05239;hpb=aa64050a24605bb1b25ba06653cf13590fbdb568;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/mm/internal.h b/mm/internal.h index 07b6736..1a8a0d4 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -134,7 +134,7 @@ struct compact_control { unsigned long nr_migratepages; /* Number of pages to migrate */ unsigned long free_pfn; /* isolate_freepages search base */ unsigned long migrate_pfn; /* isolate_migratepages search base */ - bool sync; /* Synchronous migration */ + enum migrate_mode mode; /* Async or sync migration mode */ bool ignore_skip_hint; /* Scan blocks even if marked skip */ bool finished_update_free; /* True when the zone cached pfns are * no longer being updated @@ -144,7 +144,10 @@ struct compact_control { int order; /* order a direct compactor needs */ int migratetype; /* MOVABLE, RECLAIMABLE etc */ struct zone *zone; - bool contended; /* True if a lock was contended */ + bool contended; /* True if a lock was contended, or + * need_resched() true during async + * compaction + */ }; unsigned long