Commit 05edd888 authored by Souptick Joarder's avatar Souptick Joarder Committed by Darrick J. Wong

fs: xfs: Change return type to vm_fault_t

Use new return type vm_fault_t for fault handlers.
Signed-off-by: default avatarSouptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: default avatarMatthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 2e050e64
...@@ -1020,7 +1020,7 @@ xfs_file_llseek( ...@@ -1020,7 +1020,7 @@ xfs_file_llseek(
* page_lock (MM) * page_lock (MM)
* i_lock (XFS - extent map serialisation) * i_lock (XFS - extent map serialisation)
*/ */
static int static vm_fault_t
__xfs_filemap_fault( __xfs_filemap_fault(
struct vm_fault *vmf, struct vm_fault *vmf,
enum page_entry_size pe_size, enum page_entry_size pe_size,
...@@ -1028,7 +1028,7 @@ __xfs_filemap_fault( ...@@ -1028,7 +1028,7 @@ __xfs_filemap_fault(
{ {
struct inode *inode = file_inode(vmf->vma->vm_file); struct inode *inode = file_inode(vmf->vma->vm_file);
struct xfs_inode *ip = XFS_I(inode); struct xfs_inode *ip = XFS_I(inode);
int ret; vm_fault_t ret;
trace_xfs_filemap_fault(ip, pe_size, write_fault); trace_xfs_filemap_fault(ip, pe_size, write_fault);
...@@ -1057,7 +1057,7 @@ __xfs_filemap_fault( ...@@ -1057,7 +1057,7 @@ __xfs_filemap_fault(
return ret; return ret;
} }
static int static vm_fault_t
xfs_filemap_fault( xfs_filemap_fault(
struct vm_fault *vmf) struct vm_fault *vmf)
{ {
...@@ -1067,7 +1067,7 @@ xfs_filemap_fault( ...@@ -1067,7 +1067,7 @@ xfs_filemap_fault(
(vmf->flags & FAULT_FLAG_WRITE)); (vmf->flags & FAULT_FLAG_WRITE));
} }
static int static vm_fault_t
xfs_filemap_huge_fault( xfs_filemap_huge_fault(
struct vm_fault *vmf, struct vm_fault *vmf,
enum page_entry_size pe_size) enum page_entry_size pe_size)
...@@ -1080,7 +1080,7 @@ xfs_filemap_huge_fault( ...@@ -1080,7 +1080,7 @@ xfs_filemap_huge_fault(
(vmf->flags & FAULT_FLAG_WRITE)); (vmf->flags & FAULT_FLAG_WRITE));
} }
static int static vm_fault_t
xfs_filemap_page_mkwrite( xfs_filemap_page_mkwrite(
struct vm_fault *vmf) struct vm_fault *vmf)
{ {
...@@ -1092,7 +1092,7 @@ xfs_filemap_page_mkwrite( ...@@ -1092,7 +1092,7 @@ xfs_filemap_page_mkwrite(
* on write faults. In reality, it needs to serialise against truncate and * on write faults. In reality, it needs to serialise against truncate and
* prepare memory for writing so handle is as standard write fault. * prepare memory for writing so handle is as standard write fault.
*/ */
static int static vm_fault_t
xfs_filemap_pfn_mkwrite( xfs_filemap_pfn_mkwrite(
struct vm_fault *vmf) struct vm_fault *vmf)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment