Move FAULT_FLAG_xyz into handle_mm_fault() callers
[linux-2.6-block.git] / arch / mips / mm / fault.c
index 55767ad9f00ee4a5aec5be3e984d5a971b808eb9..6751ce9ede9ed6ff6935ec058e86d5f47b992730 100644 (file)
@@ -102,7 +102,7 @@ good_area:
         * make sure we exit gracefully rather than endlessly redo
         * the fault.
         */
-       fault = handle_mm_fault(mm, vma, address, write);
+       fault = handle_mm_fault(mm, vma, address, write ? FAULT_FLAG_WRITE : 0);
        if (unlikely(fault & VM_FAULT_ERROR)) {
                if (fault & VM_FAULT_OOM)
                        goto out_of_memory;