aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r--arch/x86/include/asm/pgtable.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index e99cbe814ea8..d3eee663c41f 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -322,6 +322,16 @@ static inline pmd_t pmd_mksoft_dirty(pmd_t pmd)
322 return pmd_set_flags(pmd, _PAGE_SOFT_DIRTY); 322 return pmd_set_flags(pmd, _PAGE_SOFT_DIRTY);
323} 323}
324 324
325static inline pte_t pte_clear_soft_dirty(pte_t pte)
326{
327 return pte_clear_flags(pte, _PAGE_SOFT_DIRTY);
328}
329
330static inline pmd_t pmd_clear_soft_dirty(pmd_t pmd)
331{
332 return pmd_clear_flags(pmd, _PAGE_SOFT_DIRTY);
333}
334
325#endif /* CONFIG_HAVE_ARCH_SOFT_DIRTY */ 335#endif /* CONFIG_HAVE_ARCH_SOFT_DIRTY */
326 336
327/* 337/*