block: implement and use {disk|part}_to_dev()
commited9e1982347b36573cd622ee5f4e2a7ccd79b3fd
authorTejun Heo <tj@kernel.org>
Mon, 25 Aug 2008 10:56:05 +0000 (25 19:56 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:07 +0000 (9 08:56 +0200)
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