| commit | ed9e1982347b36573cd622ee5f4e2a7ccd79b3fd | [log] [tgz] |
|---|---|---|
| author | Tejun Heo <tj@kernel.org> | Mon Aug 25 19:56:05 2008 +0900 |
| committer | Jens Axboe <jens.axboe@oracle.com> | Thu Oct 09 08:56:07 2008 +0200 |
| tree | 79d834094d655ec97cfc0a382a9207ebc8e711a5 | |
| parent | 870d6656126add8e383645732b03df2b7ccd4f94 [diff] |
block: implement and use {disk|part}_to_dev()
Implement {disk|part}_to_dev() and use them to access generic device
instead of directly dereferencing {disk|part}->dev. To make sure no
user is left behind, rename generic devices fields to __dev.
This is in preparation of unifying partition 0 handling with other
partitions.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>