block: automatically enable GENHD_FL_EXT_DEVT
authorChristoph Hellwig <hch@lst.de>
Fri, 21 May 2021 05:50:53 +0000 (07:50 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Jun 2021 13:42:23 +0000 (07:42 -0600)
commit0d1feb72ffd8578f6f167ca15b2096c276c1f6df
tree78d9e2e704d8f40f26aa42ebcaa34c18ab87047a
parent2e3c73fa0c419f62fd588731be30fb0d1bca9ad6
block: automatically enable GENHD_FL_EXT_DEVT

Automatically set the GENHD_FL_EXT_DEVT flag for all disks allocated
without an explicit number of minors.  This is what all new block
drivers should do, so make sure it is the default without boilerplate
code.

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-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
block/partitions/core.c
drivers/block/n64cart.c
drivers/lightnvm/core.c
drivers/memstick/core/ms_block.c
drivers/nvdimm/blk.c
drivers/nvdimm/btt.c
drivers/nvdimm/pmem.c
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c