]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iomap: remove unnecessary advance from iomap_iter()
authorBrian Foster <bfoster@redhat.com>
Mon, 24 Feb 2025 14:47:55 +0000 (09:47 -0500)
committerChristian Brauner <brauner@kernel.org>
Wed, 26 Feb 2025 08:42:36 +0000 (09:42 +0100)
commit469739f1d8c55dc39939bdb4b558cf875be0ff4e
treebb7f941138a85a2ccaa15869cf3caca08efd7a28
parent6fe32fe1bbc1dce43daf3569dd8a84e11446257f
iomap: remove unnecessary advance from iomap_iter()

At this point, all iomap operations have been updated to advance the
iomap_iter directly before returning to iomap_iter(). Therefore, the
complexity of handling both the old and new semantics is no longer
required and can be removed from iomap_iter().

Update iomap_iter() to expect success or failure status in
iter.processed. As a precaution and developer hint to prevent
inadvertent use of old semantics, warn on a positive return code and
fail the operation. Remove the unnecessary advance and simplify the
termination logic.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Link: https://lore.kernel.org/r/20250224144757.237706-11-bfoster@redhat.com
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/iter.c