]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: Ensure physical block size is unsigned int
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 13 Oct 2010 19:18:03 +0000 (21:18 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:31:54 +0000 (13:31 -0800)
commit25e5735b6f05daa6c12f6483f458313ad6175b9a
tree565ba10e12a89c7cdec73bb0b446ca2b57eeee30
parentbf6ef02e53e18dd14798537e530e00b80435ee86
block: Ensure physical block size is unsigned int

commit 892b6f90db81cccb723d5d92f4fddc2d68b206e1 upstream.

Physical block size was declared unsigned int to accomodate the maximum
size reported by READ CAPACITY(16).  Make sure we use the right type in
the related functions.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
block/blk-settings.c
include/linux/blkdev.h