mm/shmem.c: use new return type vm_fault_t
authorSouptick Joarder <[email protected]>
Fri, 8 Jun 2018 00:09:17 +0000 (17:09 -0700)
committerLinus Torvalds <[email protected]>
Fri, 8 Jun 2018 00:34:37 +0000 (17:34 -0700)
commit20acce679910fb6d30a89fa02586a3b4a134dfeb
tree0b3d8b90596946d27bf218b3f5c184412a4ea370
parent325d7d4a968669bec18c054db6b5de5f4fc82874
mm/shmem.c: use new return type 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")

vmf_error() is the newly introduce inline function in 4.17-rc6.

Link: http://lkml.kernel.org/r/20180521202410.GA17912@jordon-HP-15-Notebook-PC
Signed-off-by: Souptick Joarder <[email protected]>
Reviewed-by: Matthew Wilcox <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/shmem.c