summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-08-16 15:19:07 +0200
committerJens Axboe <axboe@kernel.dk>2021-08-23 12:54:30 -0600
commita58bd7683fcb60ae24c8572f932b48bc65719b7c (patch)
treea8d555d924ba357bc4953be4ed31483b0f08eb9c /drivers/s390
parent9c2b9dbafc067e173db30c4fd0636392d27944e8 (diff)
downloadlinux-a58bd7683fcb60ae24c8572f932b48bc65719b7c.tar.gz
linux-a58bd7683fcb60ae24c8572f932b48bc65719b7c.tar.bz2
linux-a58bd7683fcb60ae24c8572f932b48bc65719b7c.zip
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/block/dasd_genhd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/block/dasd_genhd.c b/drivers/s390/block/dasd_genhd.c
index 07a69b19dd31..6e44515b4d33 100644
--- a/drivers/s390/block/dasd_genhd.c
+++ b/drivers/s390/block/dasd_genhd.c
@@ -40,14 +40,14 @@ int dasd_gendisk_alloc(struct dasd_block *block)
if (base->devindex >= DASD_PER_MAJOR)
return -EBUSY;
- gdp = __alloc_disk_node(1 << DASD_PARTN_BITS, NUMA_NO_NODE,
- &dasd_bio_compl_lkclass);
+ gdp = __alloc_disk_node(NUMA_NO_NODE, &dasd_bio_compl_lkclass);
if (!gdp)
return -ENOMEM;
/* Initialize gendisk structure. */
gdp->major = DASD_MAJOR;
gdp->first_minor = base->devindex << DASD_PARTN_BITS;
+ gdp->minors = 1 << DASD_PARTN_BITS;
gdp->fops = &dasd_device_operations;
/*