mm, compaction: add migratetype to compact_control
Preparation patch. We are going to need migratetype at lower layers than compact_zone() and compact_finished(). Link: http://lkml.kernel.org/r/20170307131545.28577-7-vbabka@suse.cz Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: Mel Gorman <mgorman@techsingularity.net> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
b682debd97
commit
d39773a062
@@ -193,6 +193,7 @@ struct compact_control {
|
||||
unsigned long last_migrated_pfn;/* Not yet flushed page being freed */
|
||||
const gfp_t gfp_mask; /* gfp mask of a direct compactor */
|
||||
int order; /* order a direct compactor needs */
|
||||
int migratetype; /* migratetype of direct compactor */
|
||||
const unsigned int alloc_flags; /* alloc flags of a direct compactor */
|
||||
const int classzone_idx; /* zone index of a direct compactor */
|
||||
enum migrate_mode mode; /* Async or sync migration mode */
|
||||
|
Reference in New Issue
Block a user