diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2021-02-24 23:07:36 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-25 00:38:33 +0300 |
commit | 8938494c8567ebd9ebf2a230e1707ee1f9805342 (patch) | |
tree | 531d73a2a6601b1c191c1eda9bd12f892627fd88 /mm/debug_page_ref.c | |
parent | bae84953815793f68ddd8edeadd3f4e32676a2c8 (diff) | |
download | linux-8938494c8567ebd9ebf2a230e1707ee1f9805342.tar.xz |
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/debug_page_ref.c')
0 files changed, 0 insertions, 0 deletions