Skip to content

Commit

Permalink
mm: compaction: make compact_zone_order() static
Browse files Browse the repository at this point in the history
There's no compact_zone_order() user outside file scope, so make it static.

Signed-off-by: Kyungmin Park <[email protected]>
Acked-by: David Rientjes <[email protected]>
Reviewed-by: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
kyungmin-park authored and torvalds committed Nov 1, 2011
1 parent dd73e85 commit d43a87e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions include/linux/compaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ extern unsigned long try_to_compact_pages(struct zonelist *zonelist,
int order, gfp_t gfp_mask, nodemask_t *mask,
bool sync);
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 */
#define COMPACT_MAX_DEFER_SHIFT 6
Expand Down Expand Up @@ -69,12 +67,6 @@ static inline unsigned long compaction_suitable(struct zone *zone, int order)
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)
{
}
Expand Down
2 changes: 1 addition & 1 deletion mm/compaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ static int compact_zone(struct zone *zone, struct compact_control *cc)
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,
bool sync)
{
Expand Down

0 comments on commit d43a87e

Please sign in to comment.