Christoph Hellwig 7c3f828b52 block: refactor device number setup in __device_add_disk
Untangle the mess around blk_alloc_devt by moving the check for
the used allocation scheme into the callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20210521055116.1053587-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-06-01 07:42:22 -06:00
..
2021-05-08 21:49:48 -06:00
2021-04-28 14:27:12 -07:00
2020-03-17 20:55:21 +01:00
2021-05-09 13:25:14 -07:00
2020-05-29 16:30:39 -06:00
2020-09-23 09:18:13 -06:00
2020-01-06 20:59:04 -07:00