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:26:28 +0000 (13:26 -0800)
commita4340113f9a3a4ebcbf988f1c1a27c07d70185b9
tree2ea1a541093dcb62e9de9867787e11f8574c0970
parentb55f3d92cd8f544f8f0c31f20f0a745d2c138dfc
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