diff options
author | Damien Le Moal <[email protected]> | 2018-07-03 15:23:58 +0900 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2018-07-10 22:25:03 -0400 |
commit | f13cff6c25bd8986627365346d123312ee7baa78 (patch) | |
tree | 03d3cbe622b7ec73849fead5f0874e5828bdafc3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 36eb8ff672faee83ccce60c191f0fef07c6adce6 (diff) |
scsi: sd_zbc: Fix variable type and bogus comment
Fix the description of sd_zbc_check_zone_size() to correctly explain that
the returned value is a number of device blocks, not bytes. Additionally,
the 32 bits "ret" variable used in this function may truncate the 64 bits
zone_blocks variable value upon return. To fix this, change "ret" type to
s64.
Fixes: ccce20fc79 ("sd_zbc: Avoid that resetting a zone fails sporadically")
Signed-off-by: Damien Le Moal <[email protected]>
Cc: Bart Van Assche <[email protected]>
Cc: [email protected]
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions