summaryrefslogtreecommitdiffstats
path: root/mm/hugetlb_cgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/hugetlb_cgroup.c')
-rw-r--r--mm/hugetlb_cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb_cgroup.c b/mm/hugetlb_cgroup.c
index 68c2f2f3c05b..f1930fa0b445 100644
--- a/mm/hugetlb_cgroup.c
+++ b/mm/hugetlb_cgroup.c
@@ -139,7 +139,7 @@ static void hugetlb_cgroup_move_parent(int idx, struct hugetlb_cgroup *h_cg,
139 if (!page_hcg || page_hcg != h_cg) 139 if (!page_hcg || page_hcg != h_cg)
140 goto out; 140 goto out;
141 141
142 nr_pages = 1 << compound_order(page); 142 nr_pages = compound_nr(page);
143 if (!parent) { 143 if (!parent) {
144 parent = root_h_cgroup; 144 parent = root_h_cgroup;
145 /* root has no limit */ 145 /* root has no limit */