summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2024-11-15 23:01:53 +0300
committerChristian Brauner <brauner@kernel.org>2024-11-21 11:35:25 +0300
commit2519369201f36a6b2571bc672c4e48f88c6b68d6 (patch)
tree4465491c23abb7736ac374197ed52383fe354a14 /tools/perf/scripts/python/task-analyzer.py
parenta514e6f8f5caa24413731bed54b322bd34d918dd (diff)
downloadlinux-2519369201f36a6b2571bc672c4e48f88c6b68d6.tar.xz
iomap: reset per-iter state on non-error iter advances
iomap_iter_advance() zeroes the processed and mapping fields on every non-error iteration except for the last expected iteration (i.e. return 0 expected to terminate the iteration loop). This appears to be circumstantial as nothing currently relies on these fields after the final iteration. Therefore to better faciliate iomap_iter reuse in subsequent patches, update iomap_iter_advance() to always reset per-iteration state on successful completion. Signed-off-by: Brian Foster <bfoster@redhat.com> Link: https://lore.kernel.org/r/20241115200155.593665-2-bfoster@redhat.com Reviewed-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions