block: implement and use {disk|part}_to_dev()
authorTejun Heo <tj@kernel.org>
Mon, 25 Aug 2008 10:56:05 +0000 (19:56 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:07 +0000 (08:56 +0200)
commited9e1982347b36573cd622ee5f4e2a7ccd79b3fd
tree79d834094d655ec97cfc0a382a9207ebc8e711a5
parent870d6656126add8e383645732b03df2b7ccd4f94
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>
block/blk-integrity.c
block/blk-sysfs.c
block/genhd.c
drivers/block/aoe/aoeblk.c
drivers/block/nbd.c
drivers/ide/ide-probe.c
drivers/md/dm.c
drivers/md/md.c
fs/block_dev.c
fs/partitions/check.c
include/linux/genhd.h