Move FAULT_FLAG_xyz into handle_mm_fault() callers
[linux-2.6-block.git] / arch / powerpc / platforms / cell / spu_fault.c
index 95d8dadf2d87f5daa01f1cdf9121fa4e06c6fdce..d06ba87f1a19e8b6d40906d330446395ffeec0d3 100644 (file)
@@ -70,7 +70,7 @@ int spu_handle_mm_fault(struct mm_struct *mm, unsigned long ea,
        }
 
        ret = 0;
-       *flt = handle_mm_fault(mm, vma, ea, is_write);
+       *flt = handle_mm_fault(mm, vma, ea, is_write ? FAULT_FLAG_WRITE : 0);
        if (unlikely(*flt & VM_FAULT_ERROR)) {
                if (*flt & VM_FAULT_OOM) {
                        ret = -ENOMEM;