]> git.baikalelectronics.ru Git - kernel.git/commit
block: refactor device number setup in __device_add_disk
authorChristoph Hellwig <hch@lst.de>
Fri, 21 May 2021 05:50:51 +0000 (07:50 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Jun 2021 13:42:22 +0000 (07:42 -0600)
commitd3eff3654ba243d32ed0cdd63db6d08062db7bf1
treeec838c19b8258a60d105f8a89df36f414a54cf1f
parentf0ed20ef5180134baa5fbb0f4d79e2b2674d565f
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>
block/blk.h
block/genhd.c
block/partitions/core.c