iomap: only call mapping_set_error once for each failed bio
authorChristoph Hellwig <hch@lst.de>
Thu, 7 Dec 2023 07:27:06 +0000 (08:27 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 1 Feb 2024 13:20:12 +0000 (14:20 +0100)
commit6b865d6530230b0c446efd93e0207b8eed7eadb2
treeb95a546be66953b42f59d84b63a0468a7de43a0b
parentae5535efd8c445ad6033ac0d5da0197897b148ea
iomap: only call mapping_set_error once for each failed bio

Instead of clling mapping_set_error once per folio, only do that once
per bio, and consolidate all the writeback error handling code in
iomap_finish_ioend.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231207072710.176093-11-hch@lst.de
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/buffered-io.c