diff options
Diffstat (limited to 'include/linux/pgtable.h')
| -rw-r--r-- | include/linux/pgtable.h | 34 | 
1 files changed, 3 insertions, 31 deletions
diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 1159b25b0542..c63cd44777ec 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -1064,35 +1064,6 @@ static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)  #define arch_start_context_switch(prev)	do {} while (0)  #endif -/* - * When replacing an anonymous page by a real (!non) swap entry, we clear - * PG_anon_exclusive from the page and instead remember whether the flag was - * set in the swp pte. During fork(), we have to mark the entry as !exclusive - * (possibly shared). On swapin, we use that information to restore - * PG_anon_exclusive, which is very helpful in cases where we might have - * additional (e.g., FOLL_GET) references on a page and wouldn't be able to - * detect exclusivity. - * - * These functions don't apply to non-swap entries (e.g., migration, hwpoison, - * ...). - */ -#ifndef __HAVE_ARCH_PTE_SWP_EXCLUSIVE -static inline pte_t pte_swp_mkexclusive(pte_t pte) -{ -	return pte; -} - -static inline int pte_swp_exclusive(pte_t pte) -{ -	return false; -} - -static inline pte_t pte_swp_clear_exclusive(pte_t pte) -{ -	return pte; -} -#endif -  #ifdef CONFIG_HAVE_ARCH_SOFT_DIRTY  #ifndef CONFIG_ARCH_ENABLE_THP_MIGRATION  static inline pmd_t pmd_swp_mksoft_dirty(pmd_t pmd) @@ -1214,7 +1185,8 @@ static inline int track_pfn_copy(struct vm_area_struct *vma)   * can be for the entire vma (in which case pfn, size are zero).   */  static inline void untrack_pfn(struct vm_area_struct *vma, -			       unsigned long pfn, unsigned long size) +			       unsigned long pfn, unsigned long size, +			       bool mm_wr_locked)  {  } @@ -1232,7 +1204,7 @@ extern void track_pfn_insert(struct vm_area_struct *vma, pgprot_t *prot,  			     pfn_t pfn);  extern int track_pfn_copy(struct vm_area_struct *vma);  extern void untrack_pfn(struct vm_area_struct *vma, unsigned long pfn, -			unsigned long size); +			unsigned long size, bool mm_wr_locked);  extern void untrack_pfn_moved(struct vm_area_struct *vma);  #endif  |