ocxl: Change return type for fault handler
authorSouptick Joarder <jrdr.linux@gmail.com>
Mon, 11 Jun 2018 20:29:04 +0000 (01:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 2 Jul 2018 13:54:26 +0000 (23:54 +1000)
commita545cf032d11437ed86e62f00d499108d91cae54
tree368c9afb1391eb650f453624d52491dce5f04ef2
parent021c91791a5e7e85c567452f1be3e4c2c6cb6063
ocxl: Change return type for fault handler

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.

Ref-> commit 1c8f422059ae ("mm: change return type to vm_fault_t")

There is an existing bug when vm_insert_pfn() can return ENOMEM which
was ignored and VM_FAULT_NOPAGE returned as default. The new inline
vmf_insert_pfn() has removed this inefficiency by returning correct
vm_fault_ type.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/ocxl/context.c
drivers/misc/ocxl/sysfs.c