|
@@ -1210,7 +1210,7 @@ static int compact_node(int nid)
|
|
|
}
|
|
|
|
|
|
/* Compact all nodes in the system */
|
|
|
-static int compact_nodes(void)
|
|
|
+static void compact_nodes(void)
|
|
|
{
|
|
|
int nid;
|
|
|
|
|
@@ -1219,8 +1219,6 @@ static int compact_nodes(void)
|
|
|
|
|
|
for_each_online_node(nid)
|
|
|
compact_node(nid);
|
|
|
-
|
|
|
- return COMPACT_COMPLETE;
|
|
|
}
|
|
|
|
|
|
/* The written value is actually unused, all memory is compacted */
|
|
@@ -1231,7 +1229,7 @@ int sysctl_compaction_handler(struct ctl_table *table, int write,
|
|
|
void __user *buffer, size_t *length, loff_t *ppos)
|
|
|
{
|
|
|
if (write)
|
|
|
- return compact_nodes();
|
|
|
+ compact_nodes();
|
|
|
|
|
|
return 0;
|
|
|
}
|