Commit a18c494e authored by Anton Blanchard's avatar Anton Blanchard

ppc64: use symbolic names for fault types

parent 132eedc7
...@@ -121,16 +121,18 @@ void do_page_fault(struct pt_regs *regs, unsigned long address, ...@@ -121,16 +121,18 @@ void do_page_fault(struct pt_regs *regs, unsigned long address,
*/ */
switch (handle_mm_fault(mm, vma, address, is_write)) { switch (handle_mm_fault(mm, vma, address, is_write)) {
case 1: case VM_FAULT_MINOR:
current->min_flt++; current->min_flt++;
break; break;
case 2: case VM_FAULT_MAJOR:
current->maj_flt++; current->maj_flt++;
break; break;
case 0: case VM_FAULT_SIGBUS:
goto do_sigbus; goto do_sigbus;
default: case VM_FAULT_OOM:
goto out_of_memory; goto out_of_memory;
default:
BUG();
} }
up_read(&mm->mmap_sem); up_read(&mm->mmap_sem);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment