]> www.infradead.org Git - users/hch/block.git/commit
block: refactor device number setup in __device_add_disk
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Apr 2021 12:54:20 +0000 (14:54 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 May 2021 14:43:55 +0000 (16:43 +0200)
commit248fc16d63f3f70bc351c22d7b4f97347cd7e319
treed321bb9e838bbe9c4607fd66d06ee5bfa63c6ba2
parent49ab4d09ae52643b601bed7282c0a31bd0c2cd7f
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>
block/blk.h
block/genhd.c
block/partitions/core.c