diff options
| author | Alexander Viro <viro@math.psu.edu> | 2002-07-31 23:33:24 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-07-31 23:33:24 -0700 |
| commit | 3f41fa2f9a08aff674b55458ec39c578f57de8a8 (patch) | |
| tree | 20626607a58daf923c66e66c42c4fc37043784a5 /include/linux | |
| parent | d7536161a456543c86286e4f4f2928eef4297fdb (diff) | |
[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.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ide.h | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
