block: fix bad use of min() on different types
authorJens Axboe <jens.axboe@oracle.com>
Thu, 29 Apr 2010 07:28:21 +0000 (09:28 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 29 Apr 2010 07:28:21 +0000 (09:28 +0200)
commit0341aafb7f3313bcedc6811a098500be85f3fc77
tree844d674e4f4a9f5200d71f0e71f15e1e9e0daad9
parent50eaeb323a170e231263ccb433bb2f99bd9e27ac
block: fix bad use of min() on different types

Just cast the page size to sector_t, that will always fit.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-lib.c