Re: [patch v4 4/6] mm, compaction: embed migration mode in compact_control

2014-05-09 Thread Andrew Morton
On Wed, 7 May 2014 03:36:46 -0700 (PDT) David Rientjes wrote: > We're going to want to manipulate the migration mode for compaction in the > page > allocator, and currently compact_control's sync field is only a bool. > > Currently, we only do MIGRATE_ASYNC or MIGRATE_SYNC_LIGHT compaction

[patch v4 4/6] mm, compaction: embed migration mode in compact_control

2014-05-07 Thread David Rientjes
We're going to want to manipulate the migration mode for compaction in the page allocator, and currently compact_control's sync field is only a bool. Currently, we only do MIGRATE_ASYNC or MIGRATE_SYNC_LIGHT compaction depending on the value of this bool. Convert the bool to enum migrate_mode