]> git.neil.brown.name Git - history.git/commit
[PATCH] (25/25) more cleanups of struct gendisk.
authorAlexander Viro <viro@math.psu.edu>
Sat, 7 Sep 2002 10:05:14 +0000 (03:05 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 7 Sep 2002 10:05:14 +0000 (03:05 -0700)
commite86a37861c8a0830d7410bf9ebe5ebaf5f6adc7f
tree9441ca4833309bbf6acc94fea3082184476a396d
parent3708de94cf8d66e46d5ab7d712da81684ff99bf7
[PATCH] (25/25) more cleanups of struct gendisk.

* we remove the paritition 0 from ->part[] and put the old
contents of ->part[0] into gendisk itself; indexes are shifted, obviously.
* ->part is allocated at add_gendisk() time and freed at del_gendisk()
according to value of ->minor_shift; static arrays of hd_struct are gone
from drivers, ditto for manual allocations a-la ide.  As the matter of fact,
none of the drivers know about struct hd_struct now.
29 files changed:
drivers/acorn/block/mfmhd.c
drivers/block/DAC960.c
drivers/block/DAC960.h
drivers/block/acsi.c
drivers/block/blkpg.c
drivers/block/cciss.c
drivers/block/cciss.h
drivers/block/cpqarray.c
drivers/block/genhd.c
drivers/block/paride/pd.c
drivers/block/ps2esdi.c
drivers/block/umem.c
drivers/block/xd.c
drivers/ide/hd.c
drivers/ide/ide-probe.c
drivers/ide/ide.c
drivers/md/md.c
drivers/message/i2o/i2o_block.c
drivers/mtd/ftl.c
drivers/mtd/nftlcore.c
drivers/s390/block/dasd_genhd.c
drivers/scsi/sd.c
drivers/scsi/sd.h
drivers/scsi/sr.c
fs/block_dev.c
fs/partitions/check.c
include/linux/genhd.h
include/linux/ide.h
include/linux/raid/md.h