|
|
@@ -155,7 +155,7 @@ static void hugetlb_cgroup_move_parent(int idx, struct cgroup *cgroup,
|
|
|
* Force the hugetlb cgroup to empty the hugetlb resources by moving them to
|
|
|
* the parent cgroup.
|
|
|
*/
|
|
|
-static int hugetlb_cgroup_pre_destroy(struct cgroup *cgroup)
|
|
|
+static void hugetlb_cgroup_pre_destroy(struct cgroup *cgroup)
|
|
|
{
|
|
|
struct hstate *h;
|
|
|
struct page *page;
|
|
|
@@ -172,8 +172,6 @@ static int hugetlb_cgroup_pre_destroy(struct cgroup *cgroup)
|
|
|
}
|
|
|
cond_resched();
|
|
|
} while (hugetlb_cgroup_have_usage(cgroup));
|
|
|
-
|
|
|
- return 0;
|
|
|
}
|
|
|
|
|
|
int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages,
|