diff options
| author | Brian Foster <[email protected]> | 2024-11-15 20:01:53 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-11-21 08:35:25 +0000 |
| commit | 2519369201f36a6b2571bc672c4e48f88c6b68d6 (patch) | |
| tree | 4465491c23abb7736ac374197ed52383fe354a14 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | fscache: Remove duplicate included header (diff) | |
| download | kernel-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
