H. Peter Anvin 520a2c2741 [SCSI] sd: fix computation of the full size of the device
When computing the full size of the device, we need to cast
sdkp->capacity before shifting, since in some configurations sector_t
can be a 32-bit number.

Also, change ffz(~x) to the more idiomatic ilog2(x).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-10-23 11:42:20 -05:00
..
2008-10-15 11:31:54 +11:00
2008-10-16 11:21:48 -07:00
2008-10-16 11:21:40 -07:00
2008-10-14 22:24:51 +01:00
2008-10-15 23:16:07 +01:00
2008-10-16 11:21:30 -07:00
2008-10-14 10:11:27 +11:00
2008-10-16 11:21:49 -07:00
2008-09-03 15:55:32 -07:00
2008-10-13 14:33:13 -07:00
2008-10-16 11:21:45 -07:00
2008-10-16 11:21:51 -07:00
2008-10-03 10:04:10 +02:00