Souptick Joarder ab77dab462 fs/dax.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.

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

There was an existing bug inside dax_load_hole() if vm_insert_mixed had
failed to allocate a page table, we'd return VM_FAULT_NOPAGE instead of
VM_FAULT_OOM.  With new vmf_insert_mixed() this issue is addressed.

vm_insert_mixed_mkwrite has inefficiency when it returns an error value,
driver has to convert it to vm_fault_t type.  With new
vmf_insert_mixed_mkwrite() this limitation will be addressed.

Link: http://lkml.kernel.org/r/20180510181121.GA15239@jordon-HP-15-Notebook-PC
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-06-07 17:34:33 -07:00
..
2018-05-22 14:28:02 -04:00
2018-05-21 14:30:07 -04:00
2018-06-04 14:29:13 -07:00
2018-03-14 13:31:23 +01:00
2018-06-05 13:24:20 -07:00
2018-06-07 08:50:57 -07:00
2018-06-05 13:24:20 -07:00
2018-06-05 16:29:19 -07:00
2018-03-27 13:18:09 -04:00
2018-05-22 14:27:52 -04:00
2018-06-04 07:58:06 -07:00
2018-06-07 09:23:12 -07:00
2018-06-07 10:23:33 -07:00
2018-05-22 14:27:52 -04:00
2018-05-21 14:30:09 -04:00
2018-05-22 14:27:53 -04:00
\n
2018-06-07 09:36:29 -07:00
2018-06-05 13:24:20 -07:00
2018-06-07 17:34:33 -07:00
2018-05-26 09:16:44 +02:00
2017-12-07 14:23:30 -05:00
2018-05-03 16:11:37 -06:00
2018-06-07 08:53:50 -07:00
2018-02-15 15:34:42 -05:00
2018-05-26 09:16:44 +02:00
2018-04-04 12:44:02 -07:00
2018-05-26 09:16:44 +02:00