]> git.baikalelectronics.ru Git - kernel.git/commit
device-dax: Convert to vmf_insert_mixed and vm_fault_t
authorDan Williams <dan.j.williams@intel.com>
Sat, 14 Jul 2018 04:49:34 +0000 (21:49 -0700)
committerDave Jiang <dave.jiang@intel.com>
Fri, 20 Jul 2018 18:19:15 +0000 (11:19 -0700)
commitc2ee30409c373a5d9b4e0f1dfea02eea9c94fe80
tree20723173abf522721a86c034b3876ee48a5f337c
parentbd594001da828129ed149628b7cd368061398a51
device-dax: Convert to vmf_insert_mixed and vm_fault_t

Use new return type vm_fault_t for fault and huge_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 668ff7502a9d ("mm: change return type to vm_fault_t")

Previously vm_insert_mixed() returned an error code which driver mapped into
VM_FAULT_* type. The new function vmf_insert_mixed() will replace this
inefficiency by returning VM_FAULT_* type.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/dax/device.c
include/linux/huge_mm.h
mm/huge_memory.c