https://github.com/torvalds/linux
Revision f7acede65d6b65919aee5b6a360a17cedb11f2f7 authored by Christoph Hellwig on 28 January 2010, 12:30:11 UTC, committed by Jeff Garzik on 04 February 2010, 06:01:32 UTC
The value we get from the low byte of the ATA_ID_SECTOR_SIZE word is not not
a plain multiple, but the log of it, so fix the helper to give the correct
answer.  Without this we'll get an incorrect minimal I/O size in the block
limits VPD page for 4k sector drives.

Also change the return value of ata_id_logical_per_physical_sectors to u16
for the unlikely case of very large logical sectors.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
1 parent bc496ed
History
Tip revision: f7acede65d6b65919aee5b6a360a17cedb11f2f7 authored by Christoph Hellwig on 28 January 2010, 12:30:11 UTC
libata: fix ata_id_logical_per_physical_sectors
Tip revision: f7acede
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 843 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 160.2 KB
Makefile -rw-r--r-- 52.0 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top