]> git.baikalelectronics.ru Git - kernel.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)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:59 +0000 (19:49 -0600)
commit1f0fc5312bd225e29c1deb8512d8cc7c1da59570
treec5475182b81db9910baea589ae8d659ab94cf99a
parent08bf52d72717e2c7b734d86596e6e184451be73f
block: add a bdev_max_zone_append_sectors helper

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>
drivers/nvme/target/zns.c
fs/zonefs/super.c
include/linux/blkdev.h