diff options
author | Jan Kara <jack@suse.cz> | 2018-01-07 16:38:43 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-01-07 16:38:43 -0500 |
commit | c0b24625979284dd212423320fe1c84fe244ed7f (patch) | |
tree | 92824567101689de2900f33446ca5db723394e48 /fs/xfs/xfs_file.c | |
parent | bbe45d2460da98785cb9453fb0b42d9b2e79dd99 (diff) | |
download | linux-c0b24625979284dd212423320fe1c84fe244ed7f.tar.gz |
dax: pass detailed error code from dax_iomap_fault()
Ext4 needs to pass through error from its iomap handler to the page fault handler so that it can properly detect ENOSPC and force transaction commit and retry the fault (and block allocation). Add argument to dax_iomap_fault() for passing such error. Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 8601275cc5e6..9ea08326f876 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -1048,7 +1048,7 @@ __xfs_filemap_fault( if (IS_DAX(inode)) { pfn_t pfn; - ret = dax_iomap_fault(vmf, pe_size, &pfn, &xfs_iomap_ops); + ret = dax_iomap_fault(vmf, pe_size, &pfn, NULL, &xfs_iomap_ops); if (ret & VM_FAULT_NEEDDSYNC) ret = dax_finish_sync_fault(vmf, pe_size, pfn); } else { |