Needed by zone_reclaim_mode compaction-awareness. Signed-off-by: Andrea Arcangeli <aarcange@xxxxxxxxxx> --- include/linux/compaction.h | 10 ++++++++++ mm/compaction.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/linux/compaction.h b/include/linux/compaction.h index fc3f266..e953acb 100644 --- a/include/linux/compaction.h +++ b/include/linux/compaction.h @@ -23,6 +23,9 @@ extern int fragmentation_index(struct zone *zone, unsigned int order); extern unsigned long try_to_compact_pages(struct zonelist *zonelist, int order, gfp_t gfp_mask, nodemask_t *mask, bool sync, bool *contended); +extern unsigned long compact_zone_order(struct zone *zone, + int order, gfp_t gfp_mask, + bool sync, bool *contended); extern void compact_pgdat(pg_data_t *pgdat, int order); extern unsigned long compaction_suitable(struct zone *zone, int order); @@ -79,6 +82,13 @@ static inline unsigned long try_to_compact_pages(struct zonelist *zonelist, return COMPACT_CONTINUE; } +static inline unsigned long compact_zone_order(struct zone *zone, + int order, gfp_t gfp_mask, + bool sync, bool *contended) +{ + return COMPACT_CONTINUE; +} + static inline void compact_pgdat(pg_data_t *pgdat, int order) { } diff --git a/mm/compaction.c b/mm/compaction.c index afaf692..a1154c8 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1008,7 +1008,7 @@ out: return ret; } -static unsigned long compact_zone_order(struct zone *zone, +unsigned long compact_zone_order(struct zone *zone, int order, gfp_t gfp_mask, bool sync, bool *contended) { -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>