mm/thp: rename pmd_to_page() as pmd_pgtable_page()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Thu, 24 Nov 2022 13:16:41 +0000 (18:46 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:59:07 +0000 (15:59 -0800)
commit373dfda2bac1173971099dc76254a016646f62ab
tree6c6417a53284b11e012fae9aecec0c9a8ba08eb8
parent8d9b63708ddd1ac51e0260c7b8f641daf01f4caf
mm/thp: rename pmd_to_page() as pmd_pgtable_page()

Current pmd_to_page(), which derives the page table page containing the
pmd address has a very misleading name.  The problem being, it sounds
similar to pmd_page() which derives page embedded in a given pmd entry
either for next level page or a mapped huge page.  Rename it as
pmd_pgtable_page() instead.

Link: https://lkml.kernel.org/r/20221124131641.1523772-1-anshuman.khandual@arm.com
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h