From 3f41fa2f9a08aff674b55458ec39c578f57de8a8 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Wed, 31 Jul 2002 23:33:24 -0700 Subject: [PATCH] split "gendisk" to be per-disk, part 2 we are starting to split gendisks - now we can do that. Done for ide, sd, pd, hd and mfm It's in transit - what we are aiming at is getting ->nr_real to 1 for all gendisks. Once that will be done we will be able to simplify a lot stuff and remove ad-hackery. First thing that will happen after that is death of ->nr_real, obviouslye. Then we (a) will merge ->major and ->first_minor into ->dev (b) strip one level of indirection from ->driverfs_dev_arr, ->de_arr and ->flags - they turn into single-element arrays and we will simply pull the (only) element into struct gendisk. Kills a lot of ad-hackery in splitup code (fewer things to allocate). (c) replace ->major_name with ->disk_name; kills most of the crap in disk_name(9) - it only has to care about adding partition number to the name. --- include/linux/ide.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/ide.h b/include/linux/ide.h index f65e5649c0e0..6de4ad25531c 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -894,7 +894,7 @@ struct ata_channel { struct pci_dev *pci_dev; /* for pci chipsets */ #endif struct ata_device drives[MAX_DRIVES]; /* drive info */ - struct gendisk *gd; /* gendisk structure */ + struct gendisk *gd[MAX_DRIVES]; /* gendisk structure */ /* * Routines to tune PIO and DMA mode for drives. -- cgit v1.2.3