]> 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>
Wed, 17 Aug 2022 20:58:35 +0000 (13:58 -0700)
commite0fe2ca7ac59b6ac052766f17784411490436cbe
tree7ca459720d93e3116ec7e05d4ed68874ff79e88f
parent5fb9ce5c0317352c2c4427994824bac24c9877ba
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