}
#define pte_accessible pte_accessible
-static inline bool pte_accessible(struct mm_struct *mm, pte_t a)
+static inline int pte_accessible(pte_t a)
{
- if (pte_flags(a) & _PAGE_PRESENT)
- return true;
-
- if ((pte_flags(a) & (_PAGE_PROTNONE | _PAGE_NUMA)) &&
- mm_tlb_flush_pending(mm))
- return true;
-
- return false;
+ return pte_flags(a) & _PAGE_PRESENT;
}
static inline int pte_hidden(pte_t pte)