]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5874bd40b9b5bb9156fa51d3b68784025c2021db
treee3d1ecd4ffe97b036020d41f16277c44ff839f49
parenta9f339a8154db70c159385e50822e6d364d2b09b
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