]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
block/md: fix md autodetection
authorTejun Heo <teheo@suse.de>
Mon, 10 Nov 2008 06:30:47 +0000 (15:30 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 18 Nov 2008 14:08:56 +0000 (15:08 +0100)
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 <tj@kernel.org>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/partitions/check.c

index 63302534023902affd8d99df74a0b72d6bb11a8e..6d5b213b8a9b4b6e834ca9be99ae6c15a3dc0d13 100644 (file)
@@ -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);