aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 6c4345bde07e..d2bcb410e3ab 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -1413,7 +1413,7 @@ static int lock_rdev(mdk_rdev_t *rdev, dev_t dev)
1413 struct block_device *bdev; 1413 struct block_device *bdev;
1414 char b[BDEVNAME_SIZE]; 1414 char b[BDEVNAME_SIZE];
1415 1415
1416 bdev = open_partition_by_devnum(dev, FMODE_READ|FMODE_WRITE); 1416 bdev = open_by_devnum(dev, FMODE_READ|FMODE_WRITE);
1417 if (IS_ERR(bdev)) { 1417 if (IS_ERR(bdev)) {
1418 printk(KERN_ERR "md: could not open %s.\n", 1418 printk(KERN_ERR "md: could not open %s.\n",
1419 __bdevname(dev, b)); 1419 __bdevname(dev, b));
@@ -1423,7 +1423,7 @@ static int lock_rdev(mdk_rdev_t *rdev, dev_t dev)
1423 if (err) { 1423 if (err) {
1424 printk(KERN_ERR "md: could not bd_claim %s.\n", 1424 printk(KERN_ERR "md: could not bd_claim %s.\n",
1425 bdevname(bdev, b)); 1425 bdevname(bdev, b));
1426 blkdev_put_partition(bdev); 1426 blkdev_put(bdev);
1427 return err; 1427 return err;
1428 } 1428 }
1429 rdev->bdev = bdev; 1429 rdev->bdev = bdev;
@@ -1437,7 +1437,7 @@ static void unlock_rdev(mdk_rdev_t *rdev)
1437 if (!bdev) 1437 if (!bdev)
1438 MD_BUG(); 1438 MD_BUG();
1439 bd_release(bdev); 1439 bd_release(bdev);
1440 blkdev_put_partition(bdev); 1440 blkdev_put(bdev);
1441} 1441}
1442 1442
1443void md_autodetect_dev(dev_t dev); 1443void md_autodetect_dev(dev_t dev);