summaryrefslogtreecommitdiffstats
path: root/include/linux/dax.h
diff options
context:
space:
mode:
authorJan Kara2017-11-01 16:36:43 +0100
committerDan Williams2017-11-03 14:26:25 +0100
commit71eab6dfd91eabf06fe782a590c07e8a0795f5ea (patch)
treefc0c38518d74b25f9038e1c880a262a6366e768e /include/linux/dax.h
parentdax, iomap: Add support for synchronous faults (diff)
downloadkernel-qcow2-linux-71eab6dfd91eabf06fe782a590c07e8a0795f5ea.tar.gz
kernel-qcow2-linux-71eab6dfd91eabf06fe782a590c07e8a0795f5ea.tar.xz
kernel-qcow2-linux-71eab6dfd91eabf06fe782a590c07e8a0795f5ea.zip
dax: Implement dax_finish_sync_fault()
Implement a function that filesystems can call to finish handling of synchronous page faults. It takes care of syncing appropriare file range and insertion of page table entry. Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/dax.h')
-rw-r--r--include/linux/dax.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/dax.h b/include/linux/dax.h
index e7fa4b8f45bc..d403f78b706c 100644
--- a/include/linux/dax.h
+++ b/include/linux/dax.h
@@ -96,6 +96,8 @@ ssize_t dax_iomap_rw(struct kiocb *iocb, struct iov_iter *iter,
const struct iomap_ops *ops);
int dax_iomap_fault(struct vm_fault *vmf, enum page_entry_size pe_size,
pfn_t *pfnp, const struct iomap_ops *ops);
+int dax_finish_sync_fault(struct vm_fault *vmf, enum page_entry_size pe_size,
+ pfn_t pfn);
int dax_delete_mapping_entry(struct address_space *mapping, pgoff_t index);
int dax_invalidate_mapping_entry_sync(struct address_space *mapping,
pgoff_t index);