mm: hugetlb_vmemmap: use walk_page_range_novma() to simplify the code
authorMuchun Song <songmuchun@bytedance.com>
Mon, 27 Nov 2023 08:46:43 +0000 (16:46 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 11 Dec 2023 00:51:54 +0000 (16:51 -0800)
commitfb93ed63345f67f676cd3569057e8e7c2b58aed7
treee74ff75cdb416e20133721ea5c1b833c4b252798
parentb123d09304d8676ba327b72a39a6d0b79b6f604c
mm: hugetlb_vmemmap: use walk_page_range_novma() to simplify the code

It is unnecessary to implement a series of dedicated page table walking
helpers since there is already a general one walk_page_range_novma().  So
use it to simplify the code.

Link: https://lkml.kernel.org/r/20231127084645.27017-3-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb_vmemmap.c