|
@@ -801,7 +801,14 @@ static inline void clear_soft_dirty(struct vm_area_struct *vma,
|
|
|
set_pte_at(vma->vm_mm, addr, pte, ptent);
|
|
|
}
|
|
|
}
|
|
|
+#else
|
|
|
+static inline void clear_soft_dirty(struct vm_area_struct *vma,
|
|
|
+ unsigned long addr, pte_t *pte)
|
|
|
+{
|
|
|
+}
|
|
|
+#endif
|
|
|
|
|
|
+#if defined(CONFIG_MEM_SOFT_DIRTY) && defined(CONFIG_TRANSPARENT_HUGEPAGE)
|
|
|
static inline void clear_soft_dirty_pmd(struct vm_area_struct *vma,
|
|
|
unsigned long addr, pmd_t *pmdp)
|
|
|
{
|
|
@@ -815,14 +822,7 @@ static inline void clear_soft_dirty_pmd(struct vm_area_struct *vma,
|
|
|
|
|
|
set_pmd_at(vma->vm_mm, addr, pmdp, pmd);
|
|
|
}
|
|
|
-
|
|
|
#else
|
|
|
-
|
|
|
-static inline void clear_soft_dirty(struct vm_area_struct *vma,
|
|
|
- unsigned long addr, pte_t *pte)
|
|
|
-{
|
|
|
-}
|
|
|
-
|
|
|
static inline void clear_soft_dirty_pmd(struct vm_area_struct *vma,
|
|
|
unsigned long addr, pmd_t *pmdp)
|
|
|
{
|