]> 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>
Fri, 26 Aug 2022 05:02:52 +0000 (22:02 -0700)
commit1e495c0a06283e53fd1eb70433112aa426c36622
tree2094519b130fabff6835a5dbd8c4e6f155ecdc53
parenta0a3598c5a2369da355da8816e50b85ba1fa92d5
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