block: add a queue_limits_stack_bdev helper
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Feb 2024 22:56:41 +0000 (14:56 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Mar 2024 15:54:42 +0000 (08:54 -0700)
commitc1373f1cf452e4c7553a9d3bc05d87ec15c4f85f
tree5f44e2107953b9b53f94f2452f45b93fa2509a53
parent631d4efb8009df64deae8c1382b8cf43879a4e22
block: add a queue_limits_stack_bdev helper

Add a small wrapper around blk_stack_limits that allows passing a bdev
for the bottom device and prints an error in case of misaligned
device. The name fits into the new queue limits API and the intent is
to eventually replace disk_stack_limits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240228225653.947152-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c
include/linux/blkdev.h