android_kernel_xiaomi_sm8350/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_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
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
dasd_fba.c [S390] dasd: Fix cleanup in dasd_{fba,diag}_check_characteristics(). 2008-07-17 17:22:08 +02:00
dasd_fba.h
dasd_genhd.c
dasd_int.h [S390] dasd: Add support for enhanced VM UID 2008-08-01 16:39:29 +02:00
dasd_ioctl.c
dasd_proc.c block: don't depend on consecutive minor space 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
dcssblk.c block: don't depend on consecutive minor space 2008-10-09 08:56:05 +02:00
Kconfig
Makefile
xpram.c [S390] Cleanup xpram printk messages. 2008-07-14 10:02:18 +02:00