block: always set bdev->bd_part
authorTejun Heo <tj@kernel.org>
Mon, 25 Aug 2008 10:56:12 +0000 (19:56 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:08 +0000 (08:56 +0200)
commit0762b8bde9729f10f8e6249809660ff2ec3ad735
tree12aa94ef16b840f713f833c712d335646c816dc1
parent4c46501d1659475dc6c89554af6ce7fe6ecf615c
block: always set bdev->bd_part

Till now, bdev->bd_part is set only if the bdev was for parts other
than part0.  This patch makes bdev->bd_part always set so that code
paths don't have to differenciate common handling.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c
drivers/md/md.c
fs/block_dev.c
fs/partitions/check.c
include/linux/genhd.h