mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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/[email protected] Signed-off-by: Vlastimil Babka <[email protected]> Acked-by: Mel Gorman <[email protected]> Acked-by: Johannes Weiner <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: David Rientjes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b682debd97
commit
d39773a062
2 changed files with 8 additions and 8 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue