]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hugetlb_cgroup: use helper for_each_hstate and hstate_index
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 29 Jul 2022 08:01:06 +0000 (16:01 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 22 Aug 2022 22:58:02 +0000 (15:58 -0700)
commit5d81a215c6b4f4d45933b1a1ff4ff38786aaa0a5
treee968a10201ad4c21b9fe0eeb948be70ba05b9360
parentf92fe7c2dd558cf557b54aced4f47d7346061734
hugetlb_cgroup: use helper for_each_hstate and hstate_index

Use helper for_each_hstate and hstate_index to iterate the hstate and get
the hstate index. Minor readability improvement.

Link: https://lkml.kernel.org/r/20220729080106.12752-6-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Mina Almasry <almasrymina@google.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb_cgroup.c