Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d43a87e6 authored by Kyungmin Park's avatar Kyungmin Park Committed by Linus Torvalds
Browse files

mm: compaction: make compact_zone_order() static



There's no compact_zone_order() user outside file scope, so make it static.

Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Reviewed-by: default avatarMinchan Kim <minchan.kim@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent dd73e85f
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -24,8 +24,6 @@ extern unsigned long try_to_compact_pages(struct zonelist *zonelist,
			int order, gfp_t gfp_mask, nodemask_t *mask,
			int order, gfp_t gfp_mask, nodemask_t *mask,
			bool sync);
			bool sync);
extern unsigned long compaction_suitable(struct zone *zone, int order);
extern unsigned long compaction_suitable(struct zone *zone, int order);
extern unsigned long compact_zone_order(struct zone *zone, int order,
					gfp_t gfp_mask, bool sync);


/* Do not skip compaction more than 64 times */
/* Do not skip compaction more than 64 times */
#define COMPACT_MAX_DEFER_SHIFT 6
#define COMPACT_MAX_DEFER_SHIFT 6
@@ -69,12 +67,6 @@ static inline unsigned long compaction_suitable(struct zone *zone, int order)
	return COMPACT_SKIPPED;
	return COMPACT_SKIPPED;
}
}


static inline unsigned long compact_zone_order(struct zone *zone, int order,
					       gfp_t gfp_mask, bool sync)
{
	return COMPACT_CONTINUE;
}

static inline void defer_compaction(struct zone *zone)
static inline void defer_compaction(struct zone *zone)
{
{
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -582,7 +582,7 @@ static int compact_zone(struct zone *zone, struct compact_control *cc)
	return ret;
	return ret;
}
}


unsigned long compact_zone_order(struct zone *zone,
static unsigned long compact_zone_order(struct zone *zone,
				 int order, gfp_t gfp_mask,
				 int order, gfp_t gfp_mask,
				 bool sync)
				 bool sync)
{
{