Commit d39b6af2 authored by Peter Xu's avatar Peter Xu Committed by Andrew Morton
Browse files

mm: drop leftover comment references to pxx_huge()

pxx_huge() has been removed in recent commit 9636f055 ("mm/treewide:
remove pXd_huge()"), however there are still three comments referencing
the API that got overlooked.  Remove them.

Link: https://lkml.kernel.org/r/20240527154855.528816-1-peterx@redhat.com


Signed-off-by: default avatarPeter Xu <peterx@redhat.com>
Reported-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 7005e7ec
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -90,8 +90,6 @@ PMD Page Table Helpers
+---------------------------+--------------------------------------------------+
| pmd_leaf                  | Tests a leaf mapped PMD                          |
+---------------------------+--------------------------------------------------+
| pmd_huge                  | Tests a HugeTLB mapped PMD                       |
+---------------------------+--------------------------------------------------+
| pmd_trans_huge            | Tests a Transparent Huge Page (THP) at PMD       |
+---------------------------+--------------------------------------------------+
| pmd_present               | Tests whether pmd_page() points to valid memory  |
@@ -169,8 +167,6 @@ PUD Page Table Helpers
+---------------------------+--------------------------------------------------+
| pud_leaf                  | Tests a leaf mapped PUD                          |
+---------------------------+--------------------------------------------------+
| pud_huge                  | Tests a HugeTLB mapped PUD                       |
+---------------------------+--------------------------------------------------+
| pud_trans_huge            | Tests a Transparent Huge Page (THP) at PUD       |
+---------------------------+--------------------------------------------------+
| pud_present               | Tests a valid mapped PUD                         |
+2 −2
Original line number Diff line number Diff line
@@ -1120,8 +1120,8 @@ __split_large_page(struct cpa_data *cpa, pte_t *kpte, unsigned long address,
		lpinc = PMD_SIZE;
		/*
		 * Clear the PSE flags if the PRESENT flag is not set
		 * otherwise pmd_present/pmd_huge will return true
		 * even on a non present pmd.
		 * otherwise pmd_present() will return true even on a non
		 * present pmd.
		 */
		if (!(pgprot_val(ref_prot) & _PAGE_PRESENT))
			pgprot_val(ref_prot) &= ~_PAGE_PSE;