powerpc/cell/spufs: Change return type to vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Fri, 20 Apr 2018 17:32:39 +0000 (23:02 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 May 2018 13:10:34 +0000 (23:10 +1000)
commite807f02c5c364c5a7315b50efdbc102bdd11e953
treee518f7831835ceda8b0d4f4f58c774dd78039759
parent942cc40ae4354fee1e97137346434a2697d97e02
powerpc/cell/spufs: Change return type to vm_fault_t

Use new return type vm_fault_t for fault handler. For now, this is
just documenting that the function returns a VM_FAULT value rather
than an errno. Once all instances are converted, vm_fault_t will
become a distinct type. See commit 1c8f422059ae ("mm: change return
type to vm_fault_t").

We are fixing a minor bug, that the error from vm_insert_pfn() was
being ignored and the effect of this is likely to be only felt in OOM
situations.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/cell/spufs/file.c