@@ -161,6 +161,18 @@ static inline int pte_write(pte_t pte)
161
161
return pte_flags (pte ) & _PAGE_RW ;
162
162
}
163
163
164
+ #define pmd_write pmd_write
165
+ static inline int pmd_write (pmd_t pmd )
166
+ {
167
+ return pmd_flags (pmd ) & _PAGE_RW ;
168
+ }
169
+
170
+ #define pud_write pud_write
171
+ static inline int pud_write (pud_t pud )
172
+ {
173
+ return pud_flags (pud ) & _PAGE_RW ;
174
+ }
175
+
164
176
static inline int pte_huge (pte_t pte )
165
177
{
166
178
return pte_flags (pte ) & _PAGE_PSE ;
@@ -1121,12 +1133,6 @@ extern int pmdp_clear_flush_young(struct vm_area_struct *vma,
1121
1133
unsigned long address , pmd_t * pmdp );
1122
1134
1123
1135
1124
- #define pmd_write pmd_write
1125
- static inline int pmd_write (pmd_t pmd )
1126
- {
1127
- return pmd_flags (pmd ) & _PAGE_RW ;
1128
- }
1129
-
1130
1136
#define __HAVE_ARCH_PMDP_HUGE_GET_AND_CLEAR
1131
1137
static inline pmd_t pmdp_huge_get_and_clear (struct mm_struct * mm , unsigned long addr ,
1132
1138
pmd_t * pmdp )
@@ -1156,12 +1162,6 @@ static inline void pmdp_set_wrprotect(struct mm_struct *mm,
1156
1162
clear_bit (_PAGE_BIT_RW , (unsigned long * )pmdp );
1157
1163
}
1158
1164
1159
- #define pud_write pud_write
1160
- static inline int pud_write (pud_t pud )
1161
- {
1162
- return pud_flags (pud ) & _PAGE_RW ;
1163
- }
1164
-
1165
1165
#ifndef pmdp_establish
1166
1166
#define pmdp_establish pmdp_establish
1167
1167
static inline pmd_t pmdp_establish (struct vm_area_struct * vma ,
0 commit comments