diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2016-10-07 19:57:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-07 21:46:27 -0400 |
commit | 791cae9620e35d18df2cedf2bd444920c3ecf04a (patch) | |
tree | fc234a178d73f3e70ff4598cc35041ab494158db /include/linux/compaction.h | |
parent | 06ed29989f39f5129d4f76f4a2d7ce2efa46a6a1 (diff) |
mm, compaction: cleanup unused functions
Since kswapd compaction moved to kcompactd, compact_pgdat() is not
called anymore, so we remove it. The only caller of __compact_pgdat()
is compact_node(), so we merge them and remove code that was only
reachable from kswapd.
Link: http://lkml.kernel.org/r/20160810091226.6709-3-vbabka@suse.cz
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Tested-by: Lorenzo Stoakes <lstoakes@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/compaction.h')
-rw-r--r-- | include/linux/compaction.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/compaction.h b/include/linux/compaction.h index d4e106b5dc27..1bb58581301c 100644 --- a/include/linux/compaction.h +++ b/include/linux/compaction.h | |||
@@ -70,7 +70,6 @@ extern int fragmentation_index(struct zone *zone, unsigned int order); | |||
70 | extern enum compact_result try_to_compact_pages(gfp_t gfp_mask, | 70 | extern enum compact_result try_to_compact_pages(gfp_t gfp_mask, |
71 | unsigned int order, unsigned int alloc_flags, | 71 | unsigned int order, unsigned int alloc_flags, |
72 | const struct alloc_context *ac, enum compact_priority prio); | 72 | const struct alloc_context *ac, enum compact_priority prio); |
73 | extern void compact_pgdat(pg_data_t *pgdat, int order); | ||
74 | extern void reset_isolation_suitable(pg_data_t *pgdat); | 73 | extern void reset_isolation_suitable(pg_data_t *pgdat); |
75 | extern enum compact_result compaction_suitable(struct zone *zone, int order, | 74 | extern enum compact_result compaction_suitable(struct zone *zone, int order, |
76 | unsigned int alloc_flags, int classzone_idx); | 75 | unsigned int alloc_flags, int classzone_idx); |
@@ -154,10 +153,6 @@ extern void kcompactd_stop(int nid); | |||
154 | extern void wakeup_kcompactd(pg_data_t *pgdat, int order, int classzone_idx); | 153 | extern void wakeup_kcompactd(pg_data_t *pgdat, int order, int classzone_idx); |
155 | 154 | ||
156 | #else | 155 | #else |
157 | static inline void compact_pgdat(pg_data_t *pgdat, int order) | ||
158 | { | ||
159 | } | ||
160 | |||
161 | static inline void reset_isolation_suitable(pg_data_t *pgdat) | 156 | static inline void reset_isolation_suitable(pg_data_t *pgdat) |
162 | { | 157 | { |
163 | } | 158 | } |