aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2018-07-03 06:23:58 +0000
committerMartin K. Petersen <[email protected]>2018-07-11 02:25:03 +0000
commitf13cff6c25bd8986627365346d123312ee7baa78 (patch)
tree03d3cbe622b7ec73849fead5f0874e5828bdafc3 /fs/btrfs/dev-replace.c
parentscsi: qla2xxx: Fix NULL pointer dereference for fcport search (diff)
downloadkernel-f13cff6c25bd8986627365346d123312ee7baa78.tar.gz
kernel-f13cff6c25bd8986627365346d123312ee7baa78.zip
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 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions