block: remove the minors argument to __alloc_disk_node
This was a leftover from the legacy alloc_disk interface. Switch the scsi ULPs and dasd to set ->minors directly like all other drivers and remove the argument. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> [dasd] Link: https://lore.kernel.org/r/20210816131910.615153-7-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
9c2b9dbafc
commit
a58bd7683f
@@ -3409,7 +3409,7 @@ static int sd_probe(struct device *dev)
|
||||
if (!sdkp)
|
||||
goto out;
|
||||
|
||||
gd = __alloc_disk_node(SD_MINORS, NUMA_NO_NODE, &sd_bio_compl_lkclass);
|
||||
gd = __alloc_disk_node(NUMA_NO_NODE, &sd_bio_compl_lkclass);
|
||||
if (!gd)
|
||||
goto out_free;
|
||||
|
||||
@@ -3455,6 +3455,7 @@ static int sd_probe(struct device *dev)
|
||||
|
||||
gd->major = sd_major((index & 0xf0) >> 4);
|
||||
gd->first_minor = ((index & 0xf) << 4) | (index & 0xfff00);
|
||||
gd->minors = SD_MINORS;
|
||||
|
||||
gd->fops = &sd_fops;
|
||||
gd->private_data = &sdkp->driver;
|
||||
|
||||
Reference in New Issue
Block a user