btrfs: use bdev_max_active_zones instead of open coding it
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:39 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:58 +0000 (19:49 -0600)
commitc1e7b24416400ef13ff92a1c60c336c9a2834d7b
tree40c929ab2d49e10d76bd5794f2e051ea0edfd5ae
parent998e9cbcd615e5e6a7baa69e673ee845f812744e
btrfs: use bdev_max_active_zones instead of open coding it

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Acked-by: David Sterba <dsterba@suse.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/btrfs/zoned.c