fs: ocfs2: use new return type vm_fault_t
authorSouptick Joarder <[email protected]>
Fri, 8 Jun 2018 00:04:59 +0000 (17:04 -0700)
committerLinus Torvalds <[email protected]>
Fri, 8 Jun 2018 00:34:34 +0000 (17:34 -0700)
commitc6137fe36d2ac160d919bf97bc3dfd6494b0b471
treecbb29dd0b0e4321344d7daa9aa644558033ed069
parent64202a21a449837aa155764029216d69019cfb15
fs: ocfs2: 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.

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

vmf_error() is the newly introduce inline function in 4.18.

Fix one checkpatch.pl warning by replacing BUG_ON() with WARN_ON()

[[email protected]: undo BUG_ON->WARN_ON change]
Link: http://lkml.kernel.org/r/20180523153258.GA28451@jordon-HP-15-Notebook-PC
Signed-off-by: Souptick Joarder <[email protected]>
Reviewed-by: Matthew Wilcox <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Joseph Qi <[email protected]>
Cc: Changwei Ge <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/mmap.c