block: add bdev_max_segments() helper
authorNaohiro Aota <naohiro.aota@wdc.com>
Mon, 22 Aug 2022 06:07:01 +0000 (15:07 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 15:16:34 +0000 (17:16 +0200)
commit1815305d81996c8f892669321ae23ab2ba3e0c4b
treee65d3cb7f47d8f2dda309d69e9a78b6918f3d3c5
parentdd2ee2fd1fcbc104f8ee3871598442dc2760beab
block: add bdev_max_segments() helper

commit 65ea1b66482f415d51cd46515b02477257330339 upstream

Add bdev_max_segments() like other queue parameters.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/blkdev.h