Damien Le Moal 6eadc61224 scsi: sd: Improve sd_completed_bytes
Re-shuffle the code to be more efficient by not initializing variables
upfront (i.e. do it only when necessary).  Also replace the do_div calls
with calls to sectors_to_logical().

No functional change is introduced by this patch.

[mkp: bytes_to_logical()]

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-04-24 19:00:29 -04:00
..
2017-03-03 21:36:56 -08:00
2017-02-08 10:51:24 -08:00
2017-04-06 13:07:33 -04:00
2017-03-29 22:50:09 -04:00
2017-01-05 00:21:12 -05:00
2017-03-23 12:04:05 -04:00
2017-03-23 12:04:05 -04:00
2016-11-28 15:51:31 -05:00
2017-01-31 14:00:34 -07:00
2016-11-14 13:16:42 -07:00
2017-04-24 19:00:29 -04:00
2017-04-24 19:00:29 -04:00
2017-03-15 19:22:10 -04:00
2017-02-21 11:51:42 -08:00
2017-03-15 19:27:46 -04:00