diff options
| author | Ira Weiny <[email protected]> | 2024-11-07 20:58:19 +0000 |
|---|---|---|
| committer | Dave Jiang <[email protected]> | 2024-11-08 16:36:29 +0000 |
| commit | 06cf321aadef17c7b1578369e314193c0e1c7d8e (patch) | |
| tree | 6e943b37f59aa61bb83914e356606f249b7ae8cb /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | Linux 6.12-rc5 (diff) | |
| download | kernel-06cf321aadef17c7b1578369e314193c0e1c7d8e.tar.gz kernel-06cf321aadef17c7b1578369e314193c0e1c7d8e.zip | |
range: Add range_overlaps()
Code to support CXL Dynamic Capacity devices will have extent ranges
which need to be compared for intersection not a subset as is being
checked in range_contains().
range_overlaps() is defined in btrfs with a different meaning from what
is required in the standard range code. Dan Williams pointed this out
in [1]. Adjust the btrfs call according to his suggestion there.
Then add a generic range_overlaps().
Cc: Dan Williams <[email protected]>
Cc: Chris Mason <[email protected]>
Cc: Josef Bacik <[email protected]>
Cc: David Sterba <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/all/[email protected]/ [1]
Acked-by: David Sterba <[email protected]>
Reviewed-by: Davidlohr Bueso <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Fan Ni <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Signed-off-by: Ira Weiny <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
