iomap: iomap_write_end cleanup
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 6 May 2022 01:19:13 +0000 (18:19 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 8 May 2022 21:47:42 +0000 (14:47 -0700)
commitd74999c8c060dfeaf9977b91baa3c795fc183a84
treee3d1ecd4ffe97b036020d41f16277c44ff839f49
parentb71450e2cc4b3c79f33c5bd276d152af9bd54f79
iomap: iomap_write_end cleanup

In iomap_write_end(), only call iomap_write_failed() on the byte range
that has failed.  This should improve code readability, but doesn't fix
an actual bug because iomap_write_failed() is called after updating the
file size here and it only affects the memory beyond the end of the
file.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c