diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2010-10-13 21:18:03 +0200 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2010-12-14 23:39:59 +0100 |
commit | 97d388bb0a4d7e5acc7274645382adac50260096 (patch) | |
tree | 38dc058e144e33bcc97c0ff58d25084f87569ea5 /block | |
parent | 512ac859f60d61374783e276f8fb7861a9d1d0b9 (diff) |
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index f5ed5a1187b..3430c1fc9df 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -326,7 +326,7 @@ EXPORT_SYMBOL(blk_queue_logical_block_size); * hardware can operate on without reverting to read-modify-write * operations. */ -void blk_queue_physical_block_size(struct request_queue *q, unsigned short size) +void blk_queue_physical_block_size(struct request_queue *q, unsigned int size) { q->limits.physical_block_size = size; |