mm-hugetlb-introduce-huge-pte-version-of-uffd-wp-helpers.patch removed from -mm tree
The quilt patch titled
Subject: mm/hugetlb: introduce huge pte version of uffd-wp helpers
has been removed from the -mm tree. Its filename was
mm-hugetlb-introduce-huge-pte-version-of-uffd-wp-helpers.patch
This patch was dropped because it was merged into the mm-stable branch\nof git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Peter Xu <[email protected]>
Subject: mm/hugetlb: introduce huge pte version of uffd-wp helpers
They will be used in the follow up patches to either check/set/clear uffd-wp bit of a huge pte.
So far it reuses all the small pte helpers. Archs can overwrite these versions when necessary (with __HAVE_ARCH_HUGE_PTE_UFFD_WP* macros) in the future.
---
arch/s390/include/asm/hugetlb.h | 15 +++++++++++++++ include/asm-generic/hugetlb.h | 15 +++++++++++++++ 2 files changed, 30 insertions(+)
arch/s390/include/asm/hugetlb.h renamed from arch/s390/include/asm/hugetlb.h~mm-hugetlb-introduce-huge-pte-version-of-uffd-wp-helpers +15 -0
@@ -120,6 +120,21 @@ static inline pte_t huge_pte_modify(pte_return pte_modify (pte, newprot); } +static inline pte_t huge_pte_mkuffd_wp (pte_t pte) +{ +return pte; +} + +static inline pte_t huge_pte_clear_uffd_wp (pte_t pte) +{ +return pte; +} + +static inline int huge_pte_uffd_wp (pte_t pte) +{ +return 0 ; +} +static inline bool gigantic_page_runtime_supported (void ) {return true;
include/asm-generic/hugetlb.h renamed from include/asm-generic/hugetlb.h~mm-hugetlb-introduce-huge-pte-version-of-uffd-wp-helpers +15 -0
@@ -35,6 +35,21 @@ static inline pte_t huge_pte_modify(pte_return pte_modify (pte, newprot); } +static inline pte_t huge_pte_mkuffd_wp (pte_t pte) +{ +return pte_mkuffd_wp (pte); +} + +static inline pte_t huge_pte_clear_uffd_wp (pte_t pte) +{ +return pte_clear_uffd_wp (pte); +} + +static inline int huge_pte_uffd_wp (pte_t pte) +{ +return pte_uffd_wp (pte); +} +#ifndef __HAVE_ARCH_HUGE_PTE_CLEARstatic inline void huge_pte_clear (struct mm_struct *mm,unsigned long addr,pte_t *ptep,unsigned long sz)
_
Patches currently in -mm which might be from [email protected] are