diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2017-10-10 23:54:24 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-17 06:54:33 +0300 |
commit | e8c77ec483b0bb3c9e6ee9144b9bcdde340647ca (patch) | |
tree | 02c25eb76521144b4ebf0b71e684baed90d4c815 /fs/ceph | |
parent | 5eed92d173e0bf695c690d6b903441bde36879fb (diff) | |
download | linux-e8c77ec483b0bb3c9e6ee9144b9bcdde340647ca.tar.xz |
scsi: sd_zbc: Use well defined macros
Instead of open coding, use the min() macro to calculate a report zones
reply buffer length in sd_zbc_check_zone_size() and the round_up() macro
for calculating the number of zones in sd_zbc_setup().
No functional change is introduced by this patch.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'fs/ceph')
0 files changed, 0 insertions, 0 deletions