mm: compaction: staticize compact_zone_order
Subsystems (2)
PATCH 1/1 mm: compaction: staticize compact_zone_order
From: Kyungmin Park <[email protected]>
There's no user to use compact_zone_order. So staticize this function.
---
include/linux/compaction.h +0 -8
@@ -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
@@ -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) { }
mm/compaction.c +1 -1
@@ -586,7 +586,7 @@ out: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) {
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 4 lines · Kyungmin Park
From: Kyungmin Park <[email protected]>
There's no user to use
compact_zone_order. So staticize this function.
s/no user/no user outside of file scope/
Quoted 1 line
Signed-off-by Kyungmin Park <[email protected]>
Quoted 5 lines · Kyungmin Park
From: Kyungmin Park <[email protected]>
There's no user to use
compact_zone_order. So staticize this function.Signed-off-by Kyungmin Park <[email protected]>
Signature · 2 lines
Mel Gorman SUSE Labs
Quoted 5 lines · Kyungmin Park
From: Kyungmin Park <[email protected]>
There's no user to use
compact_zone_order. So staticize this function.Signed-off-by Kyungmin Park <[email protected]>
Signature · 9 lines
Kinds regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>