X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mm%2Fhugetlb_cgroup.c;h=f1930fa0b445dae721d9be0139e2b2ba7119ec97;hb=f60858f9d327c4dd0c432abe9ec943a83929c229;hp=68c2f2f3c05b76203fae22ad8cf727482c95216e;hpb=f4366e44efeb895c358fddd11f9ecee81bdad06b;p=linux.git 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, if (!page_hcg || page_hcg != h_cg) goto out; - nr_pages = 1 << compound_order(page); + nr_pages = compound_nr(page); if (!parent) { parent = root_h_cgroup; /* root has no limit */