commit | 8938494c8567ebd9ebf2a230e1707ee1f9805342 | [log] [tgz] |
---|---|---|
author | Miaohe Lin <linmiaohe@huawei.com> | Wed Feb 24 12:07:36 2021 -0800 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Wed Feb 24 13:38:33 2021 -0800 |
tree | 531d73a2a6601b1c191c1eda9bd12f892627fd88 | |
parent | bae84953815793f68ddd8edeadd3f4e32676a2c8 [diff] |
hugetlb_cgroup: use helper pages_per_huge_page() in hugetlb_cgroup We could use helper function pages_per_huge_page() to get the number of pages in a hstate to simplify the code slightly. Link: https://lkml.kernel.org/r/20210205084513.29624-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>