mm-sparc-change-pxd_huge-behavior-to-exclude-swap-entries.patch removed from -mm tree
The quilt patch titled
Subject: mm/sparc: change pXd_huge() behavior to exclude swap entries
has been removed from the -mm tree. Its filename was
mm-sparc-change-pxd_huge-behavior-to-exclude-swap-entries.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Peter Xu <[email protected]>
Subject: mm/sparc: change pXd_huge() behavior to exclude swap entries
Date: Mon, 18 Mar 2024 16:03:55 -0400
Please refer to the previous patch on the reasoning for x86. Now sparc is the only architecture that will allow swap entries to be reported as pXd_huge(). After this patch, all architectures should forbid swap entries in pXd_huge().
---
arch/sparc/mm/hugetlbpage.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
arch/sparc/mm/hugetlbpage.c renamed from arch/sparc/mm/hugetlbpage.c~mm-sparc-change-pxd_huge-behavior-to-exclude-swap-entries +2 -4
@@ -409,14 +409,12 @@ pte_t huge_ptep_get_and_clear(struct mm_int pmd_huge (pmd_t pmd) { -return !pmd_none (pmd) && - (pmd_val (pmd) & (_PAGE_VALID|_PAGE_PMD_HUGE)) != _PAGE_VALID; +return pmd_leaf (pmd); }int pud_huge (pud_t pud) { -return !pud_none (pud) && - (pud_val (pud) & (_PAGE_VALID|_PAGE_PUD_HUGE)) != _PAGE_VALID; +return pud_leaf (pud); } static void hugetlb_free_pte_range(struct mmu_gather *tlb, pmd_t *pmd,
_
Patches currently in -mm which might be from [email protected] are
mm-userfaultfd-reset-ptes-when-close-for-wr-protected-ones.patch mm-hugetlb-assert-hugetlb_lock-in-__hugetlb_cgroup_commit_charge.patch mm-page_table_check-support-userfault-wr-protect-entries.patch