]> www.infradead.org Git - users/hch/block.git/commit
block: add a queue_limits_stack_bdev helper
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 10:07:09 +0000 (11:07 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 29 Feb 2024 14:52:57 +0000 (06:52 -0800)
commit7e49df1254314bc5eba69a3ce39ec46acf01194e
tree7ef3116d691236544c99a822665c60cf6ab49118
parent7c7124c3f12372af8ae4def9384381b833ff8b72
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>
block/blk-settings.c
include/linux/blkdev.h