Lines Matching refs:fault_flags
921 unsigned int fault_flags = 0; in faultin_page() local
927 fault_flags |= FAULT_FLAG_WRITE; in faultin_page()
929 fault_flags |= FAULT_FLAG_REMOTE; in faultin_page()
931 fault_flags |= FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE; in faultin_page()
939 fault_flags |= FAULT_FLAG_INTERRUPTIBLE; in faultin_page()
942 fault_flags |= FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_RETRY_NOWAIT; in faultin_page()
948 fault_flags |= FAULT_FLAG_TRIED; in faultin_page()
951 fault_flags |= FAULT_FLAG_UNSHARE; in faultin_page()
953 VM_BUG_ON(fault_flags & FAULT_FLAG_WRITE); in faultin_page()
956 ret = handle_mm_fault(vma, address, fault_flags, NULL); in faultin_page()
963 WARN_ON_ONCE(fault_flags & FAULT_FLAG_RETRY_NOWAIT); in faultin_page()
985 if (!(fault_flags & FAULT_FLAG_RETRY_NOWAIT)) in faultin_page()
1328 unsigned int fault_flags) in vma_permits_fault() argument
1330 bool write = !!(fault_flags & FAULT_FLAG_WRITE); in vma_permits_fault()
1331 bool foreign = !!(fault_flags & FAULT_FLAG_REMOTE); in vma_permits_fault()
1380 unsigned long address, unsigned int fault_flags, in fixup_user_fault() argument
1389 fault_flags |= FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE; in fixup_user_fault()
1396 if (!vma_permits_fault(vma, fault_flags)) in fixup_user_fault()
1399 if ((fault_flags & FAULT_FLAG_KILLABLE) && in fixup_user_fault()
1403 ret = handle_mm_fault(vma, address, fault_flags, NULL); in fixup_user_fault()
1427 fault_flags |= FAULT_FLAG_TRIED; in fixup_user_fault()