From: H. Peter Anvin Date: Tue, 14 Oct 2008 18:34:20 +0000 (-0700) Subject: [SCSI] sd: fix computation of the full size of the device X-Git-Tag: v2.6.28-rc1~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=520a2c2741747062e75f91cd0faddb564fbc64d2;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed