block: use min_not_zero in blk_queue_stack_limits
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Thu, 4 Dec 2008 07:56:35 +0000 (08:56 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 29 Dec 2008 07:29:51 +0000 (08:29 +0100)
commit18af8b2ca34b831c32c6fa01e7ce33143c33bb63
tree0feb71c891dea467c88181b1974d15cf58243f9a
parenta6f23657d3072bde6844055bbc2290e497f33fbc
block: use min_not_zero in blk_queue_stack_limits

zero is invalid for max_phys_segments, max_hw_segments, and
max_segment_size. It's better to use use min_not_zero instead of
min. min() works though (because the commit 0e435ac makes sure that
these values are set to the default values, non zero, if a queue is
initialized properly).

With this patch, blk_queue_stack_limits does the almost same thing
that dm's combine_restrictions_low() does. I think that it's easy to
remove dm's combine_restrictions_low.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-settings.c