Re: [PATCH v2 1/3] scsi_cmnd: Introduce scsi_transfer_length helper

Bart Van Assche
2014-06-26T14:53:54Z

On 06/11/14 11:09, Sagi Grimberg wrote:
> + return xfer_len + (xfer_len >> ilog2(sector_size)) * 8;

Sorry that I just noticed this now, but why is a shift-right and ilog2()
used in the above expression instead of just dividing the transfer
length by the sector size ?

Thanks,

Bart.