alistair23-linux/drivers/s390/block
Tejun Heo f331c0296f block: don't depend on consecutive minor space
* Implement disk_devt() and part_devt() and use them to directly
  access devt instead of computing it from ->major and ->first_minor.

  Note that all references to ->major and ->first_minor outside of
  block layer is used to determine devt of the disk (the part0) and as
  ->major and ->first_minor will continue to represent devt for the
  disk, converting these users aren't strictly necessary.  However,
  convert them for consistency.

* Implement disk_max_parts() to avoid directly deferencing
  genhd->minors.

* Update bdget_disk() such that it doesn't assume consecutive minor
  space.

* Move devt computation from register_disk() to add_disk() and make it
  the only one (all other usages use the initially determined value).

These changes clean up the code and will help disk->part dereference
fix and extended block device numbers.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-10-09 08:56:05 +02:00
..
dasd.c [S390] cio: call ccw driver notify function with lock held 2008-08-21 19:46:41 +02:00
dasd_3990_erp.c [S390] cio: introduce fcx enabled scsw format 2008-07-14 10:02:07 +02:00
dasd_alias.c [S390] dasd: Add support for enhanced VM UID 2008-08-01 16:39:29 +02:00
dasd_devmap.c [S390] dasd: Add support for enhanced VM UID 2008-08-01 16:39:29 +02:00
dasd_diag.c [S390] dasd: use -EOPNOTSUPP instead of -ENOTSUPP 2008-07-17 17:22:10 +02:00
dasd_diag.h [S390] dasd whitespace and other cosmetics. 2006-06-29 14:58:12 +02:00
dasd_eckd.c [S390] dasd: Add support for enhanced VM UID 2008-08-01 16:39:29 +02:00
dasd_eckd.h [S390] dasd: fix data size for PSF/PRSSD command 2008-08-21 19:46:41 +02:00
dasd_eer.c [S390] drivers/s390: Use an IS_ERR test rather than a NULL test 2008-08-21 19:46:39 +02:00
dasd_erp.c [S390] dasd: add hyper PAV support to DASD device driver, part 1 2008-01-26 14:11:28 +01:00
dasd_fba.c [S390] dasd: Fix cleanup in dasd_{fba,diag}_check_characteristics(). 2008-07-17 17:22:08 +02:00
dasd_fba.h [S390] dasd whitespace and other cosmetics. 2006-06-29 14:58:12 +02:00
dasd_genhd.c [S390] dasd: add hyper PAV support to DASD device driver, part 1 2008-01-26 14:11:28 +01:00
dasd_int.h [S390] dasd: Add support for enhanced VM UID 2008-08-01 16:39:29 +02:00
dasd_ioctl.c [S390] dasd: add hyper PAV support to DASD device driver, part 1 2008-01-26 14:11:28 +01:00
dasd_proc.c block: don't depend on consecutive minor space 2008-10-09 08:56:05 +02:00
dcssblk.c block: don't depend on consecutive minor space 2008-10-09 08:56:05 +02:00
Kconfig [S390] dasd: fix double elevator_exit call when deadline iosched fails to load 2008-04-17 07:46:55 +02:00
Makefile [S390] dasd: add hyper PAV support to DASD device driver, part 1 2008-01-26 14:11:28 +01:00
xpram.c [S390] Cleanup xpram printk messages. 2008-07-14 10:02:18 +02:00