]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68e23e99d561cfee7ba9337fb4456e9613aa88d3
treeb8ba47d7ad48ae7aec36e40a0ea0e235650c3d25
parent68cb86db60a2e0512241b29e58702531de0a7eb8
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