[PATCH 6.6 291/331] btrfs: zoned: factor out prepare_allocation_zoned()