diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-07-31 11:49:10 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-08-01 04:24:35 -0400 |
commit | fef246672b009cf3f7a74e2fc9a76932ef2eeed2 (patch) | |
tree | 41d7dcf1ece710d6e4bf387dee140e47f66e9011 | |
parent | ed680c4ad478d0fee9740f7d029087f181346564 (diff) |
block: Make blk_queue_stack_limits use the new stacking interface
blk_queue_stack_limits() has been superceded by blk_stack_limits() and
disk_stack_limits(). Wrap the function call for now, we'll deprecate it
later.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r-- | block/blk-settings.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index 8a3ea3bba10d..8e86e2d2b147 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c | |||
@@ -433,27 +433,7 @@ EXPORT_SYMBOL(blk_queue_io_opt); | |||
433 | **/ | 433 | **/ |
434 | void blk_queue_stack_limits(struct request_queue *t, struct request_queue *b) | 434 | void blk_queue_stack_limits(struct request_queue *t, struct request_queue *b) |
435 | { | 435 | { |
436 | /* zero is "infinity" */ | 436 | blk_stack_limits(&t->limits, &b->limits, 0); |
437 | t->limits.max_sectors = min_not_zero(queue_max_sectors(t), | ||
438 | queue_max_sectors(b)); | ||
439 | |||
440 | t->limits.max_hw_sectors = min_not_zero(queue_max_hw_sectors(t), | ||
441 | queue_max_hw_sectors(b)); | ||
442 | |||
443 | t->limits.seg_boundary_mask = min_not_zero(queue_segment_boundary(t), | ||
444 | queue_segment_boundary(b)); | ||
445 | |||
446 | t->limits.max_phys_segments = min_not_zero(queue_max_phys_segments(t), | ||
447 | queue_max_phys_segments(b)); | ||
448 | |||
449 | t->limits.max_hw_segments = min_not_zero(queue_max_hw_segments(t), | ||
450 | queue_max_hw_segments(b)); | ||
451 | |||
452 | t->limits.max_segment_size = min_not_zero(queue_max_segment_size(t), | ||
453 | queue_max_segment_size(b)); | ||
454 | |||
455 | t->limits.logical_block_size = max(queue_logical_block_size(t), | ||
456 | queue_logical_block_size(b)); | ||
457 | 437 | ||
458 | if (!t->queue_lock) | 438 | if (!t->queue_lock) |
459 | WARN_ON_ONCE(1); | 439 | WARN_ON_ONCE(1); |