From: Tejun Heo Date: Mon, 10 Nov 2008 06:30:47 +0000 (+0900) Subject: block/md: fix md autodetection X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=55e8e30c382d25c34f8aafcc78efec948571a941;p=linux-beck.git block/md: fix md autodetection Block ext devt conversion missed md_autodetect_dev() call in rescan_partitions() leaving md autodetect unable to see partitions. Fix it. Signed-off-by: Tejun Heo Cc: Neil Brown Signed-off-by: Jens Axboe --- diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 633025340239..6d5b213b8a9b 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -577,7 +577,7 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev) } #ifdef CONFIG_BLK_DEV_MD if (state->parts[p].flags & ADDPART_FLAG_RAID) - md_autodetect_dev(bdev->bd_dev+p); + md_autodetect_dev(part_to_dev(part)->devt); #endif } kfree(state);