diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-06-09 00:23:22 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-06-09 00:23:22 -0400 |
commit | 77634f33d4078542cf1087995cced0ffdae25aa2 (patch) | |
tree | 43d15cfb43bcfb6af567e1203419ad60ef2cb160 | |
parent | 9df1bb9b516daeece159ab7fb262d01a0359247c (diff) |
block: Add missing bounce_pfn stacking and fix comments
DM no longer needs to set limits explicitly when calling blk_stack_limits.
Let the latter automatically deal with bounce_pfn scaling.
Fix kerneldoc variable names.
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index 8d3393492891..1c4df9bf6813 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c | |||
@@ -445,7 +445,7 @@ EXPORT_SYMBOL(blk_queue_stack_limits); | |||
445 | /** | 445 | /** |
446 | * blk_stack_limits - adjust queue_limits for stacked devices | 446 | * blk_stack_limits - adjust queue_limits for stacked devices |
447 | * @t: the stacking driver limits (top) | 447 | * @t: the stacking driver limits (top) |
448 | * @bdev: the underlying queue limits (bottom) | 448 | * @b: the underlying queue limits (bottom) |
449 | * @offset: offset to beginning of data within component device | 449 | * @offset: offset to beginning of data within component device |
450 | * | 450 | * |
451 | * Description: | 451 | * Description: |
@@ -458,6 +458,7 @@ int blk_stack_limits(struct queue_limits *t, struct queue_limits *b, | |||
458 | { | 458 | { |
459 | t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); | 459 | t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); |
460 | t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); | 460 | t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); |
461 | t->bounce_pfn = min_not_zero(t->bounce_pfn, b->bounce_pfn); | ||
461 | 462 | ||
462 | t->seg_boundary_mask = min_not_zero(t->seg_boundary_mask, | 463 | t->seg_boundary_mask = min_not_zero(t->seg_boundary_mask, |
463 | b->seg_boundary_mask); | 464 | b->seg_boundary_mask); |
@@ -504,7 +505,7 @@ EXPORT_SYMBOL(blk_stack_limits); | |||
504 | 505 | ||
505 | /** | 506 | /** |
506 | * disk_stack_limits - adjust queue limits for stacked drivers | 507 | * disk_stack_limits - adjust queue limits for stacked drivers |
507 | * @t: MD/DM gendisk (top) | 508 | * @disk: MD/DM gendisk (top) |
508 | * @bdev: the underlying block device (bottom) | 509 | * @bdev: the underlying block device (bottom) |
509 | * @offset: offset to beginning of data within component device | 510 | * @offset: offset to beginning of data within component device |
510 | * | 511 | * |