hugetlb: use helper {huge_pte|pmd}_lock()
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 1 Sep 2022 12:00:25 +0000 (20:00 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:26:09 +0000 (20:26 -0700)
commitbcc665436fe4648550ed4fd3345c7106b5da35b0
treeb703d555575d6c68b117f98ea14aafba44a814ba
parent103956805c250ccef3d2a54a0a2e3354291cdd85
hugetlb: use helper {huge_pte|pmd}_lock()

Use helper huge_pte_lock and pmd_lock to simplify the code. No functional
change intended.

Link: https://lkml.kernel.org/r/20220901120030.63318-6-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c