diff options
Diffstat (limited to 'arch/mips/mm/fault.c')
-rw-r--r-- | arch/mips/mm/fault.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index e8c32219d..e2d74fd11 100644 --- a/arch/mips/mm/fault.c +++ b/arch/mips/mm/fault.c @@ -90,12 +90,17 @@ good_area: * make sure we exit gracefully rather than endlessly redo * the fault. */ - { - int fault = handle_mm_fault(mm, vma, address, write); - if (fault < 0) - goto out_of_memory; - if (!fault) - goto do_sigbus; + switch (handle_mm_fault(mm, vma, address, write)) { + case 1: + tsk->min_flt++; + break; + case 2: + tsk->maj_flt++; + break; + case 0: + goto do_sigbus; + default: + goto out_of_memory; } up(&mm->mmap_sem); |