]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95b066dc45f0dccb57a3719095c86954d924803c
treee518f7831835ceda8b0d4f4f58c774dd78039759
parentf1f3ec7f5f1cb26bdd207e357fbe1f155165578d
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 668ff7502a9d ("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