dax: dax_iomap_fault() needs to call iomap_end()
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Tue, 8 Nov 2016 00:33:26 +0000 (11:33 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 8 Nov 2016 00:33:26 +0000 (11:33 +1100)
commit1550290b08012637e8d741a6a298ec6320dadda2
tree077a7b7353dfbefb1ff83411f75db6a594f8668e
parent333ccc978e1e09af2690e459b6f97d8e91cc01fa
dax: dax_iomap_fault() needs to call iomap_end()

Currently iomap_end() doesn't do anything for DAX page faults for both ext2
and XFS.  ext2_iomap_end() just checks for a write underrun, and
xfs_file_iomap_end() checks to see if it needs to finish a delayed
allocation.  However, in the future iomap_end() calls might be needed to
make sure we have balanced allocations, locks, etc.  So, add calls to
iomap_end() with appropriate error handling to dax_iomap_fault().

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Suggested-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/dax.c