diff options
| author | Gou Hao <[email protected]> | 2025-04-10 07:12:36 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-04-11 14:02:27 +0000 |
| commit | 8e3c15ee0d292c413c66fe10201d1b035a0bea72 (patch) | |
| tree | aafa6e329d9efdc12ff55fc5e02522d874f15cd9 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | fs: Fix filename init after recent refactoring (diff) | |
| download | kernel-8e3c15ee0d292c413c66fe10201d1b035a0bea72.tar.gz kernel-8e3c15ee0d292c413c66fe10201d1b035a0bea72.zip | |
iomap: skip unnecessary ifs_block_is_uptodate check
In iomap_adjust_read_range, i is either the first !uptodate block, or it
is past last for the second loop looking for trailing uptodate blocks.
Assuming there's no overflow (there's no combination of huge folios and
tiny blksize) then yeah, there is no point in retesting that the same
block pointed to by i is uptodate since we hold the folio lock so nobody
else could have set it uptodate.
Signed-off-by: Gou Hao <[email protected]>
Link: https://lore.kernel.org/[email protected]
Reviewed-by: "Darrick J. Wong" <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Suggested-by: Christoph Hellwig <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
