]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6366093a28f960f335087b3682d891542177a0d1
treeb703d555575d6c68b117f98ea14aafba44a814ba
parent19251eda86eb7715168e24c8899707e5cffa21d5
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