block: blk_max_size_offset() should check ->max_sectors
authorJens Axboe <axboe@fb.com>
Wed, 18 Jun 2014 05:09:29 +0000 (22:09 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:53 +0000 (12:54 -0600)
commit91a1519d493b0783e7d723152f0e5159b06e3abf
tree8a3591ee8e133cb5e124340b73ebf80e56a239dc
parent54da3942e1b16ecd465ae91d892d6489b8e5b46b
block: blk_max_size_offset() should check ->max_sectors

Commit 762380ad9322 inadvertently changed a check for max_sectors
to max_hw_sectors. Revert that part, so we still compare against
max_sectors.

Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blkdev.h