iomap: fix page_done callback for short writes
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 28 Jun 2019 00:28:41 +0000 (17:28 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 28 Jun 2019 00:28:41 +0000 (17:28 -0700)
commit36a7347de097edf9c4d7203d09fa223c86479674
treeb8ba47d7ad48ae7aec36e40a0ea0e235650c3d25
parent8af54f291e5cfdb215e0b3045cc365954c55855d
iomap: fix page_done callback for short writes

When we truncate a short write to have it retried, pass the truncated
length to the page_done callback instead of the full length.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap.c