]> git.ipfire.org Git - thirdparty/linux.git/commit
iomap: simplify ->read_folio_range() error handling for reads
authorJoanne Koong <joannelkoong@gmail.com>
Tue, 11 Nov 2025 19:36:54 +0000 (11:36 -0800)
committerChristian Brauner <brauner@kernel.org>
Wed, 12 Nov 2025 09:50:32 +0000 (10:50 +0100)
commitf8eaf79406fe9415db0e7a5c175b50cb01265199
tree1c97578fd801a25a8e93c509d5290218f1415630
parent6b1fd2281fb0873ec56f8791d4e4898302070804
iomap: simplify ->read_folio_range() error handling for reads

Instead of requiring that the caller calls iomap_finish_folio_read()
even if the ->read_folio_range() callback returns an error, account for
this internally in iomap instead, which makes the interface simpler and
makes it match writeback's ->read_folio_range() error handling
expectations.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Link: https://patch.msgid.link/20251111193658.3495942-6-joannelkoong@gmail.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Documentation/filesystems/iomap/operations.rst
fs/fuse/file.c
fs/iomap/buffered-io.c
include/linux/iomap.h