From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx150.postini.com [74.125.245.150]) by kanga.kvack.org (Postfix) with SMTP id A0EBC6B003C for ; Wed, 5 Jun 2013 11:10:50 -0400 (EDT) From: Andrea Arcangeli Subject: [PATCH 6/7] mm: compaction: export compact_zone_order() Date: Wed, 5 Jun 2013 17:10:36 +0200 Message-Id: <1370445037-24144-7-git-send-email-aarcange@redhat.com> In-Reply-To: <1370445037-24144-1-git-send-email-aarcange@redhat.com> References: <1370445037-24144-1-git-send-email-aarcange@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: Mel Gorman , Rik van Riel , Hugh Dickins , Richard Davies , Shaohua Li , Rafael Aquini Needed by zone_reclaim_mode compaction-awareness. Signed-off-by: Andrea Arcangeli --- include/linux/compaction.h | 9 +++++++++ mm/compaction.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/linux/compaction.h b/include/linux/compaction.h index fc3f266..77fdd8a 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,12 @@ 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) +{ +} + 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@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org