diff options
Diffstat (limited to 'block/ll_rw_blk.c')
-rw-r--r-- | block/ll_rw_blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index 8e27d0ab0d7c..5c62507a510d 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -662,7 +662,7 @@ EXPORT_SYMBOL(blk_queue_bounce_limit); | |||
662 | * Enables a low level driver to set an upper limit on the size of | 662 | * Enables a low level driver to set an upper limit on the size of |
663 | * received requests. | 663 | * received requests. |
664 | **/ | 664 | **/ |
665 | void blk_queue_max_sectors(request_queue_t *q, unsigned short max_sectors) | 665 | void blk_queue_max_sectors(request_queue_t *q, unsigned int max_sectors) |
666 | { | 666 | { |
667 | if ((max_sectors << 9) < PAGE_CACHE_SIZE) { | 667 | if ((max_sectors << 9) < PAGE_CACHE_SIZE) { |
668 | max_sectors = 1 << (PAGE_CACHE_SHIFT - 9); | 668 | max_sectors = 1 << (PAGE_CACHE_SHIFT - 9); |