diff options
author | Tejun Heo <teheo@suse.de> | 2008-11-10 15:30:47 +0900 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-11-18 15:08:56 +0100 |
commit | 55e8e30c382d25c34f8aafcc78efec948571a941 (patch) | |
tree | c044242b34590e3b5ceff03a2891f9afccc95e9e /fs/partitions | |
parent | ba32929a91fe2c0628f5be62d1597b379c8d3062 (diff) | |
download | kernel_samsung_tuna-55e8e30c382d25c34f8aafcc78efec948571a941.zip kernel_samsung_tuna-55e8e30c382d25c34f8aafcc78efec948571a941.tar.gz kernel_samsung_tuna-55e8e30c382d25c34f8aafcc78efec948571a941.tar.bz2 |
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 <tj@kernel.org>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/partitions')
-rw-r--r-- | fs/partitions/check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 6330253..6d5b213 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); |