diff options
author | Brian Foster <bfoster@redhat.com> | 2025-02-07 09:32:46 -0500 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-02-10 12:46:33 +0100 |
commit | f4799838662340b3e53da8ff6bcabac743d80f17 (patch) | |
tree | 73c4aaa7cdf603146c6f1b044c3f9c12a766c4ea /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 2e4b0b6cf5333f3a8e36d211dd81dd1074ff66c2 (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions