diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2010-10-13 15:18:03 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-10-13 15:19:12 -0400 |
commit | 892b6f90db81cccb723d5d92f4fddc2d68b206e1 (patch) | |
tree | a4cedbff388c2cc0659c76f429003b856ef17943 /block/blk-settings.c | |
parent | c49c06e4960949a9bced708858433fcf6ca36a9c (diff) |
block: Ensure physical block size is unsigned int
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>
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block/blk-settings.c')
-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 a3600a7ab8bb..315b88c8cbbb 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c | |||
@@ -344,7 +344,7 @@ EXPORT_SYMBOL(blk_queue_logical_block_size); | |||
344 | * hardware can operate on without reverting to read-modify-write | 344 | * hardware can operate on without reverting to read-modify-write |
345 | * operations. | 345 | * operations. |
346 | */ | 346 | */ |
347 | void blk_queue_physical_block_size(struct request_queue *q, unsigned short size) | 347 | void blk_queue_physical_block_size(struct request_queue *q, unsigned int size) |
348 | { | 348 | { |
349 | q->limits.physical_block_size = size; | 349 | q->limits.physical_block_size = size; |
350 | 350 | ||