aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorBrian Foster <[email protected]>2024-11-15 20:01:53 +0000
committerChristian Brauner <[email protected]>2024-11-21 08:35:25 +0000
commit2519369201f36a6b2571bc672c4e48f88c6b68d6 (patch)
tree4465491c23abb7736ac374197ed52383fe354a14 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentfscache: Remove duplicate included header (diff)
downloadkernel-2519369201f36a6b2571bc672c4e48f88c6b68d6.tar.gz
kernel-2519369201f36a6b2571bc672c4e48f88c6b68d6.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions