]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/mm: Drop pud_mknotpresent()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Mon, 23 Mar 2020 01:05:42 +0000 (06:35 +0530)
committerBorislav Petkov <bp@suse.de>
Mon, 23 Mar 2020 08:11:48 +0000 (09:11 +0100)
commit31a9122058bc5f042cb04bcdb8cd9e6c77fdae8d
tree2271eaed99bff5e77249f57c491cbd45780696c1
parent4dd2a1b92b91b5f2acf853ee1dc0df135054698f
x86/mm: Drop pud_mknotpresent()

There is an inconsistency between PMD and PUD-based THP page table helpers
like the following, as pud_present() does not test for _PAGE_PSE.

pmd_present(pmd_mknotpresent(pmd)) : True
pud_present(pud_mknotpresent(pud)) : False

Drop pud_mknotpresent() as there are no current users. If/when needed
back later, pud_present() will also have to be fixed to accommodate
_PAGE_PSE.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Baoquan He <bhe@redhat.com>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: https://lkml.kernel.org/r/1584925542-13034-1-git-send-email-anshuman.khandual@arm.com
arch/x86/include/asm/pgtable.h