diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2021-02-24 12:07:36 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-24 13:38:33 -0800 |
commit | 8938494c8567ebd9ebf2a230e1707ee1f9805342 (patch) | |
tree | 531d73a2a6601b1c191c1eda9bd12f892627fd88 /mm/hugetlb.c | |
parent | bae84953815793f68ddd8edeadd3f4e32676a2c8 (diff) | |
download | lwn-8938494c8567ebd9ebf2a230e1707ee1f9805342.tar.gz lwn-8938494c8567ebd9ebf2a230e1707ee1f9805342.zip |
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>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions