]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iomap: refactor iomap_iter() length check and tracepoint
authorBrian Foster <bfoster@redhat.com>
Fri, 7 Feb 2025 14:32:46 +0000 (09:32 -0500)
committerChristian Brauner <brauner@kernel.org>
Mon, 10 Feb 2025 11:46:33 +0000 (12:46 +0100)
commitf4799838662340b3e53da8ff6bcabac743d80f17
tree73c4aaa7cdf603146c6f1b044c3f9c12a766c4ea
parent2e4b0b6cf5333f3a8e36d211dd81dd1074ff66c2
iomap: refactor iomap_iter() length check and tracepoint

iomap_iter() checks iomap.length to skip individual code blocks not
appropriate for the initial case where there is no mapping in the
iter. To prepare for upcoming changes, refactor the code to jump
straight to the ->iomap_begin() handler in the initial case and move
the tracepoint to the top of the function so it always executes.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Link: https://lore.kernel.org/r/20250207143253.314068-4-bfoster@redhat.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/iomap/iter.c