pte_present
#define pte_same(pte_a,pte_b) ((pte_present(pte_a) ? pte_val(pte_a) & ~PTE_EXT_NG \
== (pte_present(pte_b) ? pte_val(pte_b) & ~PTE_EXT_NG \
#define pte_accessible(mm, pte) (mm_tlb_flush_pending(mm) ? pte_present(pte) : pte_valid(pte))
if (unlikely(!pte_present(*pte) || !pte_young(*pte) ||
ret = pte_present(entry);
(mm_tlb_flush_pending(mm) ? pte_present(pte) : pte_valid(pte))
if (pte_present(pte) && pte_user_exec(pte) && !pte_special(pte))
#define pmd_present(pmd) pte_present(pmd_pte(pmd))
#define pud_present(pud) pte_present(pud_pte(pud))
if (!pte_present(orig_pte) || !pte_cont(orig_pte))
present = pte_present(pte);
if (!pte_present(pte)) {
VM_WARN_ON(!pte_present(pte));
VM_WARN_ON(!pte_present(orig_pte));
VM_WARN_ON(!pte_present(pte));
WARN_ON(!pte_present(pte));
if (!pte_present(pte))
if (!pte_present(*pte_k)) {
if (!pte_present(ptep_get(pte)))
return pte_present(ptep_get(pte));
if (!pte || pte_none(*pte) || !pte_present(*pte))
if (!pte_present(*pte) || !pte_dirty(*pte)
if (!pte || pte_none(*pte) || !pte_present(*pte))
if (!pte_present(*pte_dir))
if (ptep && pte_present(*ptep)) {
if (!pte_present(pte))
if (pte_present(ptep[i]) &&
if (!pte_present(pte[i]))
if (!pte_present(pte[i])) \
if (!ptep || !pte_present(*ptep)) {
if (!(pte_present(*ptep)))
if (!pte_present(*pte_k))
if (!pte_present(*pte_k))
if (!pte_present(*pte_k))
if (pte_present(pte) && pte_user(pte))
if (pte_none(page) || pte_present(page))
if (!pte_present(pte) || !pte_read(pte))
return pte_present(pte) && !is_kernel_addr(addr);
if (!pte_present(pte) || !pte_user(pte) || !pte_read(pte))
return pte_present(pte) && pte_user(pte);
if (unlikely(!pte_present(old_pte)))
if (!pte_present(pte) || !pte_read(pte))
return pte_present(pte) && !is_kernel_addr(addr);
if (!pte_present(pte) || pte_special(pte)) {
if (!pte_present(pte)) {
if (ptep && pte_present(*ptep))
if (ptep && pte_present(*ptep) && pte_young(*ptep)) {
if (ptep && pte_present(*ptep) && pte_young(*ptep))
if (pte_present(pte) && pte_dirty(pte)) {
if (!pte_present(*ptep) || !pte_dirty(*ptep)) {
if (ptep && pte_present(*ptep))
if (pte_present(*ptep)) {
if (ptep && pte_present(*ptep) && (!writing || pte_write(*ptep))) {
if (!pte_present(pte)) {
if (ptep && pte_present(*ptep) && ((pte_val(*ptep) & mask) == hpa))
if (ptep && pte_present(*ptep)) {
if (!pte_present(pte) || (writing && !(pte_val(pte) & _PAGE_WRITE))) {
if (ptep && pte_present(*ptep) && ((pte_val(*ptep) & mask) == hpa)) {
if (pte_present(pte) && !pte_protnone(pte)) {
if (!pte_present(pte))
if (pte_present(pte)) {
if (ptep == NULL || !pte_present(*ptep)) {
if (!pte_present(*pte))
if (WARN_ON(pte_present(*ptep) && pgprot_val(prot)))
if (pte_present(pte) && !pte_special(pte)) {
BUG_ON((pte_present(*pg) | pte_hashpte(*pg)) && pgprot_val(prot));
return pte_present(pte) && (pte_val(pte) & _PAGE_LEAF);
if (pte_present(pteval) && pte_exec(pteval))
return pte_present(pte) && pte_user(pte);
if (pte_present(pte))
if (!pte_present(ptep_get(pte_k))) {
if (!pte_present(orig_pte) || !pte_napot(orig_pte))
present = pte_present(pte);
if (!pte_present(pte)) {
WARN_ON_ONCE(pte_present(pteval) && !pte_huge(pteval));
if (!pte_present(*ptep))
return pte_present(ptep_get(pte));
if (mm_is_protected(mm) && pte_present(res))
if (mm_is_protected(vma->vm_mm) && pte_present(res))
if (!mm_is_protected(mm) || !pte_present(res))
if (pte_present(entry))
return pte_present(pte) && !(pte_val(pte) & _PAGE_READ);
VM_WARN_ON(!pte_present(pte));
VM_WARN_ON(!pte_present(pte));
if (likely(pte_present(pte)))
} else if (likely(pte_present(pte)))
if (pte_present(pte)) {
if (!pte_present(*pte_k))
if (tlb_type != hypervisor && pte_present(pte)) { \
if (!pte_present(pte))
if (pte_present(pte)) {
if (!pte_present(*ptep) && pte_present(entry))
if (pte_present(entry))
if ((pte == NULL) || !pte_present(*pte) ||
if (!pte_present(*pte))
if (pte_present(*pte)) {
} while (!pte_present(*pte));
WARN_ON_ONCE(pte_present(*ptep) && !pte_same(*ptep, pte)); \
if (!pte_present(*pte))
if (!pte_present(*pte_k))
if (pte && pte_present(*pte) && (!pte_exec(*pte) || nx))
if (pte && pte_present(*pte) && pte_exec(*pte) && !nx &&
if (!pte_present(*pte))
if (!pte_present(*pte))
if (!pte_present(entry))
if (!pte_present(pte))
if (!pte_present(*pte_k))
if (pte == 0 || !pte_present(__pte(pte))) {
if (!pte_present(ptent) || pte_none(ptent)) {
if (pte_present(ptent) && !pte_none(ptent)) {
if (unlikely(!pte_present(pte) ||
if (huge_pte_none(pte) || !pte_present(pte))
if (pte_present(ptent)) {
if (pte_present(ptent)) {
if (pte_present(ptent)) {
if (!pte_present(ptent))
if (pte_present(pte)) {
if (pte_present(pte)) {
if (pte_present(pte)) {
if (pte_present(ptent)) {
if (pte_present(pte)) {
if ((pte_present(ptent) && pte_uffd_wp(ptent)) ||
if ((pte_present(ptent) && pte_uffd_wp(ptent)) ||
if (!pte_present(pte))
if (!pte_present(huge_pte))
if (pte_present(pte) || pte_none(pte))
if (unlikely(pte_present(pteval) && pte_uffd_wp(pteval)))
(pte_present(pte) && (!(write) || pte_write(pte)))
if (pte_present(pte))
if (pte_none(old_pte) || !pte_present(old_pte))
if (!pte_present(pte)) /* sanity check */
if (pte_present(pte))
*accessed = (pte_present(pte) && pte_young(pte)) ||
if (likely(pte_present(pteval)))
if (likely(pte_present(pteval)))
if (!pte_present(ptep_get(pte)))
if (!pte_present(entry))
if (!pte_present(ptent))
if (!pte_present(entry))
if (pte_none(ptent) || !pte_present(ptent))
if (pte_none(ptent) || !pte_present(ptent))
WARN_ON(!pte_present(pte));
if (!pte_present(pte))
if (pte_none(pte) || !pte_present(pte) || pte_protnone(pte))
if (!pte_present(pte)) {
if (pte_present(pte))
if (unlikely(!pte_present(pte))) {
if (!pte_present(vmf.orig_pte) && !huge_pte_none(vmf.orig_pte)) {
BUG_ON(pte_present(pteval) && !pte_huge(pteval));
VM_WARN_ON_FOLIO(!pte_present(pte), folio);
if (!pte_present(ptent))
pte_present(vmf.orig_pte))
if (!pte_present(pteval)) {
if (!pte_present(ptent)) {
if (!pte_present(ptent)) {
return pte_present(pte) && is_zero_pfn(pte_pfn(pte));
VM_WARN_ON_ONCE(!pte_present(pteval));
if (!pte_present(pteval)) {
if (unlikely(!pte_present(entry)))
if (!pte_present(pte))
if (pte_present(pte)) {
(pte_present(pte) && is_ksm_zero_pte(pte));
if (!pte_present(ptent))
if (!pte_present(ptent)) {
if (pte_present(ptent))
if (pte_present(pte)) {
if (unlikely(!pte_present(ptent))) {
VM_WARN_ON_ONCE(!pte_present(ptent));
if (pte_present(ptent))
if (!pte_present(ptent) || !pte_protnone(ptent))
if (!pte_present(vmf->orig_pte))
if (!pte_present(pte))
if (!pte_present(ptent)) {
if (!pte_present(ptep)) {
VM_BUG_ON_PAGE(pte_present(old_pte), page);
if (pte_none(pte) || pte_present(pte))
if (pte_present(orig_pte)) {
if (!pte_present(pte)) {
if (pte_present(pte)) {
if (pte_present(pte)) {
if (pte_present(pte))
else if (pte_present(pte)) {
if (!pte_present(ptent))
if (pte_present(oldpte)) {
if (pte_present(pte))
if (pte_present(old_pte)) {
if (pte_present(pte))
if (likely(pte_present(ptep_get(pvmw.pte))))
if (pte_present(pte)) {
} else if (pte_present(ptent)) {
} else if (pte_present(ptent)) {
if (pte_present(pte)) {
if (!pte_present(entry))
if (likely(pte_present(pteval))) {
} else if (likely(pte_present(pteval))) {
} else if (likely(pte_present(pteval)) && pte_unused(pteval) &&
if (likely(pte_present(pteval))) {
if (likely(pte_present(pteval))) {
} else if (likely(pte_present(pteval))) {
} else if (likely(pte_present(pteval)) && pte_unused(pteval) &&
if (likely(pte_present(pteval))) {
if (!pte_present(orig_src_pte) || is_zero_pfn(pte_pfn(orig_src_pte)))
if (pte_present(orig_src_pte)) {
WARN_ON(!pte_none(ptent) && !pte_present(ptent));
if (pte_present(pte))
if (!pte_present(pte) || is_zero_pfn(pfn))