diff options
author | Christoph Hellwig <hch@lst.de> | 2017-08-29 19:08:41 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-09-01 19:55:30 +0200 |
commit | d522d569d6adf72ceda90153a086e089e6c2fbc6 (patch) | |
tree | c802f52c44e5aa26f28817d686a9e68c3f71d158 /fs/xfs/libxfs/xfs_bmap.c | |
parent | iomap: return VM_FAULT_* codes from iomap_page_mkwrite (diff) | |
download | linux-d522d569d6adf72ceda90153a086e089e6c2fbc6.tar.xz linux-d522d569d6adf72ceda90153a086e089e6c2fbc6.zip |
xfs: consolidate the various page fault handlers
Add a new __xfs_filemap_fault helper that implements all four page fault
callouts, and make these methods themselves small stubs that set the
correct write_fault flag, and exit early for the non-DAX case for the
hugepage related ones.
Also remove the extra size checking in the pfn_fault path, which is now
handled in the core DAX code.
Life would be so much simpler if we only had one method for all this.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap.c')
0 files changed, 0 insertions, 0 deletions