]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: add a bdev_max_zone_append_sectors helper
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:46 +0000 (06:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:42:25 +0000 (14:42 +0200)
commit5f4e505909fe50a4e256704076594ee3def0b9b1
tree3bdcb217658cf80d91ce40668f9c8730e8b84ce5
parentab27d2f75bf4e2e14cc0179aa9554dbf5de9b555
block: add a bdev_max_zone_append_sectors helper

[ Upstream commit 2aba0d19f4d8c8929b4b3b94a9cfde2aa20e6ee2 ]

Add a helper to check the max supported sectors for zone append based on
the block_device instead of having to poke into the block layer internal
request_queue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-16-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/target/zns.c
fs/zonefs/super.c
include/linux/blkdev.h