23 #include <linux/sched.h>
25 #include <linux/export.h>
36 unsigned long dsisr,
unsigned *flt)
39 unsigned long is_write;
61 is_write = dsisr & MFC_DSISR_ACCESS_PUT;
66 if (dsisr & MFC_DSISR_ACCESS_DENIED)
68 if (!(vma->
vm_flags & (VM_READ | VM_EXEC)))
74 if (
unlikely(*flt & VM_FAULT_ERROR)) {
75 if (*flt & VM_FAULT_OOM) {
78 }
else if (*flt & VM_FAULT_SIGBUS) {
85 if (*flt & VM_FAULT_MAJOR)