]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iomap: introduce a full map advance helper
authorBrian Foster <bfoster@redhat.com>
Mon, 24 Feb 2025 14:47:57 +0000 (09:47 -0500)
committerChristian Brauner <brauner@kernel.org>
Wed, 26 Feb 2025 08:42:37 +0000 (09:42 +0100)
commitd79c9cc512973ef6583c3bfc0b343f9d312d85b3
tree1da287f0d733f153d1e494daca38b37803fb796f
parentedd3e3b7d210747dec723edd2b6cb49d140c1256
iomap: introduce a full map advance helper

Various iomap_iter_advance() calls advance by the full mapping
length and thus have no need for the current length input or
post-advance remaining length output from the standard advance
function. Add an iomap_iter_advance_full() helper to clean up these
cases.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Link: https://lore.kernel.org/r/20250224144757.237706-13-bfoster@redhat.com
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/dax.c
fs/iomap/buffered-io.c
fs/iomap/fiemap.c
fs/iomap/swapfile.c
include/linux/iomap.h