From: Christoph Hellwig Date: Thu, 28 Jan 2010 12:30:11 +0000 (+0100) Subject: libata: fix ata_id_logical_per_physical_sectors X-Git-Tag: v2.6.33-rc7~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7acede65d6b65919aee5b6a360a17cedb11f2f7;p=pandora-kernel.git libata: fix ata_id_logical_per_physical_sectors 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 Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed