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
..
2008-07-15 18:58:04 -07:00
2008-04-28 17:31:13 -07:00
2008-07-27 10:31:49 -04:00
2008-04-19 19:10:33 -07:00
2008-08-07 09:55:48 +01:00
2008-08-29 09:13:51 -05:00
2008-08-23 12:14:12 -07:00
2008-08-16 10:49:32 -05:00
2008-07-27 10:31:49 -04:00
2008-08-23 12:14:12 -07:00
2008-08-16 10:32:24 -05:00
2008-08-23 12:14:12 -07:00
2008-09-13 13:12:58 -05:00
2008-07-26 15:14:49 -04:00
2008-07-26 15:14:56 -04:00
2008-01-11 18:22:30 -06:00
2008-07-26 15:15:00 -04:00
2008-07-26 15:15:00 -04:00
2008-06-20 14:05:53 -06:00
2008-05-02 10:18:22 -05:00
2007-06-17 16:15:56 -05:00
2008-07-15 14:30:56 -07:00
2007-06-17 16:09:29 -05:00
2008-04-07 12:19:07 -05:00
2008-04-07 12:19:01 -05:00
2007-10-12 14:41:00 -04:00
2008-07-27 10:31:49 -04:00
2008-07-27 10:31:49 -04:00
2007-08-04 09:11:06 -05:00
2008-04-27 12:19:55 -05:00
2008-01-30 13:14:02 -06:00
2008-02-06 10:41:01 -08:00
2008-01-11 18:28:57 -06:00
2007-11-25 12:19:26 +02:00
2007-05-04 17:59:05 -07:00
2008-05-23 08:11:07 -07:00
2008-04-07 12:15:44 -05:00
2008-04-07 12:15:44 -05:00
2007-10-12 14:41:00 -04:00
2008-07-26 15:17:47 -04:00
2008-05-02 11:33:25 -05:00
2008-04-07 12:15:40 -05:00
2008-07-21 21:54:44 -07:00
2008-05-08 10:46:56 -07:00
2007-11-25 12:19:26 +02:00
2007-03-20 11:27:03 -05:00
2008-04-07 12:15:40 -05:00
2008-04-25 09:52:30 -05:00
2008-07-15 18:58:04 -07:00
2008-06-25 12:36:13 -05:00
2008-01-11 18:22:35 -06:00
2008-04-28 17:31:13 -07:00
2008-04-27 12:19:55 -05:00
2007-11-25 12:19:26 +02:00
2008-02-18 09:02:25 -06:00
2007-10-12 14:55:46 -04:00
2008-06-20 14:05:49 -06:00
2008-04-07 12:15:36 -05:00
2008-04-07 12:19:07 -05:00
2008-07-21 21:54:52 -07:00
2008-08-05 18:16:58 +02:00
2008-01-11 18:28:06 -06:00
2008-01-30 13:14:02 -06:00
2008-08-05 18:16:59 +02:00
2008-07-27 10:31:49 -04:00
2008-01-11 18:22:36 -06:00
2008-05-02 10:18:22 -05:00
2007-05-22 11:08:56 -05:00
2008-07-11 13:45:48 -05:00
2008-07-27 10:31:49 -04:00
2008-08-23 12:14:12 -07:00
2008-08-23 12:14:12 -07:00
2008-07-12 08:22:29 -05:00
2008-07-12 08:22:20 -05:00
2008-04-27 12:33:04 -05:00
2008-08-29 08:59:50 -05:00
2007-07-19 10:04:50 -07:00
2008-07-12 08:22:29 -05:00
2008-07-27 10:31:49 -04:00
2008-01-30 13:14:02 -06:00
2008-05-21 16:56:00 -07:00
2008-04-07 12:15:40 -05:00
2008-07-26 15:14:56 -04:00
2008-06-20 14:05:53 -06:00
2007-05-08 11:15:08 -05:00
2008-06-05 09:23:44 -05:00
2007-10-12 14:41:00 -04:00
2008-04-07 12:19:07 -05:00
2008-05-01 08:04:03 -07:00
2008-05-01 08:04:02 -07:00
2007-10-12 14:51:18 -04:00
2008-01-30 13:14:02 -06:00
2008-01-23 13:44:31 -06:00
2007-10-12 14:55:07 -04:00
2007-10-12 14:41:00 -04:00
2007-07-19 10:04:50 -07:00
2008-07-27 10:31:49 -04:00
2008-08-23 12:14:12 -07:00
2008-08-23 12:14:12 -07:00
2008-07-14 15:29:34 -06:00
2007-10-12 14:50:55 -04:00
2007-11-25 12:19:26 +02:00
2008-07-27 10:31:49 -04:00
2008-04-07 12:19:02 -05:00
2008-07-27 10:31:49 -04:00
2007-10-23 12:35:35 -04:00
2007-10-22 21:19:53 +02:00
2008-01-30 13:14:02 -06:00
2008-09-28 17:10:40 -05:00
2007-10-12 14:52:38 -04:00
2008-04-19 19:10:33 -07:00
2008-07-27 10:31:49 -04:00
2008-07-27 10:31:49 -04:00
2008-08-29 09:15:06 -05:00
2008-01-11 18:22:50 -06:00
2007-07-14 19:28:10 -05:00
2008-09-23 12:29:01 -07:00
2008-07-27 10:31:49 -04:00
2008-07-26 15:14:55 -04:00
2008-07-27 10:31:49 -04:00
2008-04-19 19:10:33 -07:00
2008-08-29 09:19:11 -05:00
2007-07-18 11:16:32 -05:00
2008-07-26 15:14:54 -04:00
2008-07-02 15:06:25 -06:00
2008-05-02 10:18:22 -05:00
2008-07-27 10:31:49 -04:00
2007-10-12 14:46:58 -04:00
2008-07-27 10:31:49 -04:00
2008-07-21 21:54:52 -07:00
2008-07-27 10:31:49 -04:00
2008-07-30 10:22:39 -05:00
2007-10-12 14:38:09 -04:00
2008-04-19 19:10:33 -07:00
2008-07-26 15:14:55 -04:00
2008-01-11 18:22:40 -06:00
2008-07-26 15:14:56 -04:00
2008-09-11 14:20:23 +02:00
2008-08-05 21:42:21 -07:00
2008-07-30 10:21:56 -05:00
2008-08-27 09:50:19 +02:00
2008-04-27 12:33:04 -05:00
2007-07-22 11:36:49 -07:00
2008-04-27 12:33:04 -05:00
2008-02-07 18:02:44 -06:00
2008-10-09 08:56:05 +02:00
2008-02-07 18:02:44 -06:00
2008-04-07 12:15:39 -05:00
2008-07-26 15:14:47 -04:00
2008-04-07 12:15:39 -05:00
2008-07-26 15:14:49 -04:00
2008-01-11 18:28:57 -06:00
2008-04-16 09:28:11 -05:00
2007-11-25 12:19:26 +02:00
2008-04-27 12:33:04 -05:00
2008-07-24 10:47:21 -07:00
2008-02-12 15:24:58 -06:00
2007-11-25 12:19:26 +02:00
2008-07-27 10:31:49 -04:00
2007-07-14 18:56:33 -05:00
2008-05-02 13:18:06 -05:00
2008-04-28 17:31:13 -07:00
2008-04-07 12:19:01 -05:00
2007-10-19 23:22:55 +02:00
2008-07-27 10:31:49 -04:00
2008-07-27 10:31:49 -04:00
2007-11-29 09:24:52 -08:00