diff options
Diffstat (limited to 'mm/compaction.c')
-rw-r--r-- | mm/compaction.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index 6b807e466497..f8f5c111b7d7 100644 --- a/mm/compaction.c +++ b/mm/compaction.c | |||
@@ -1210,7 +1210,7 @@ static int compact_node(int nid) | |||
1210 | } | 1210 | } |
1211 | 1211 | ||
1212 | /* Compact all nodes in the system */ | 1212 | /* Compact all nodes in the system */ |
1213 | static int compact_nodes(void) | 1213 | static void compact_nodes(void) |
1214 | { | 1214 | { |
1215 | int nid; | 1215 | int nid; |
1216 | 1216 | ||
@@ -1219,8 +1219,6 @@ static int compact_nodes(void) | |||
1219 | 1219 | ||
1220 | for_each_online_node(nid) | 1220 | for_each_online_node(nid) |
1221 | compact_node(nid); | 1221 | compact_node(nid); |
1222 | |||
1223 | return COMPACT_COMPLETE; | ||
1224 | } | 1222 | } |
1225 | 1223 | ||
1226 | /* The written value is actually unused, all memory is compacted */ | 1224 | /* The written value is actually unused, all memory is compacted */ |
@@ -1231,7 +1229,7 @@ int sysctl_compaction_handler(struct ctl_table *table, int write, | |||
1231 | void __user *buffer, size_t *length, loff_t *ppos) | 1229 | void __user *buffer, size_t *length, loff_t *ppos) |
1232 | { | 1230 | { |
1233 | if (write) | 1231 | if (write) |
1234 | return compact_nodes(); | 1232 | compact_nodes(); |
1235 | 1233 | ||
1236 | return 0; | 1234 | return 0; |
1237 | } | 1235 | } |