aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2025-01-21 05:40:51 +0000
committerDavid Sterba <[email protected]>2025-02-07 19:51:18 +0000
commit01af106a076352182b2916b143fc50272600bd81 (patch)
treeb6e1339f97eccfd8007f6aaea72d62a3e15a2e88 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentbtrfs: avoid starting new transaction when cleaning qgroup during subvolume drop (diff)
downloadkernel-01af106a076352182b2916b143fc50272600bd81.tar.gz
kernel-01af106a076352182b2916b143fc50272600bd81.zip
btrfs: fix two misuses of folio_shift()
It is meaningless to shift a byte count by folio_shift(). The folio index is in units of PAGE_SIZE, not folio_size(). We can use folio_contains() to make this work for arbitrary-order folios, so remove the assertion that the folios are of order 0. Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions