https://github.com/torvalds/linux
Revision 520a2c2741747062e75f91cd0faddb564fbc64d2 authored by H. Peter Anvin on 14 October 2008, 18:34:20 UTC, committed by James Bottomley on 23 October 2008, 16:42:20 UTC
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>
1 parent a865959
History
Tip revision: 520a2c2741747062e75f91cd0faddb564fbc64d2 authored by H. Peter Anvin on 14 October 2008, 18:34:20 UTC
[SCSI] sd: fix computation of the full size of the device
Tip revision: 520a2c2
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.7 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.7 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 101.4 KB
Makefile -rw-r--r-- 55.4 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top