aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorNaohiro Aota <naohiro.aota@wdc.com>2021-03-03 17:55:46 +0900
committerDavid Sterba <dsterba@suse.com>2021-03-04 16:16:55 +0100
commitd734492a14a2da6e7bcce8cf66436a9cf4e51ddf (patch)
tree018cb1ae1b40a6acc0a4154e0ead48259ad40f7f /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentc28ea613fafad910d08f67efe76ae552b1434e44 (diff)
btrfs: zoned: use sector_t for zone sectors
We need to use sector_t for zone_sectors, or it would set the zone size to zero when the size >= 4GB (= 2^24 sectors) by shifting the zone_sectors value by SECTOR_SHIFT. We're assuming zones sizes up to 8GiB. Fixes: 5b316468983d ("btrfs: get zone information of zoned block devices") Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions