block: simplify blk_check_zone_append
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Jul 2022 07:03:39 +0000 (09:03 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Jul 2022 12:46:25 +0000 (06:46 -0600)
commit052e545c9276f97e86368579fda32aa1ac017d51
tree5ba180ed26c90d412a0deb7be4e9928ae3ccd1a9
parent6deacb3bfac2b720e707c566549a7041f17db9c8
block: simplify blk_check_zone_append

Use the bdev based helpers instead of open coding them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220706070350.1703384-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c