diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2019-06-27 17:28:41 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-06-27 17:28:41 -0700 |
commit | 36a7347de097edf9c4d7203d09fa223c86479674 (patch) | |
tree | b8ba47d7ad48ae7aec36e40a0ea0e235650c3d25 /fs/iomap.c | |
parent | 8af54f291e5cfdb215e0b3045cc365954c55855d (diff) |
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>
Diffstat (limited to 'fs/iomap.c')
-rw-r--r-- | fs/iomap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/iomap.c b/fs/iomap.c index c4acf69b7196..f15c705c5a93 100644 --- a/fs/iomap.c +++ b/fs/iomap.c @@ -799,7 +799,7 @@ iomap_write_end(struct inode *inode, loff_t pos, unsigned len, if (old_size < pos) pagecache_isize_extended(inode, old_size, pos); if (page_ops && page_ops->page_done) - page_ops->page_done(inode, pos, copied, page, iomap); + page_ops->page_done(inode, pos, ret, page, iomap); put_page(page); if (ret < len) |