[PATCH 6.7 287/346] btrfs: zoned: factor out prepare_allocation_zoned()