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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 6c4345bde07e..53bd46dba0cb 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);
@@ -4423,7 +4423,7 @@ static int md_open(struct inode *inode, struct file *file)
4423 mddev_t *mddev = inode->i_bdev->bd_disk->private_data; 4423 mddev_t *mddev = inode->i_bdev->bd_disk->private_data;
4424 int err; 4424 int err;
4425 4425
4426 if ((err = mddev_lock(mddev))) 4426 if ((err = mutex_lock_interruptible_nested(&mddev->reconfig_mutex, 1)))
4427 goto out; 4427 goto out;
4428 4428
4429 err = 0; 4429 err = 0;
@@ -4846,8 +4846,8 @@ static int md_seq_show(struct seq_file *seq, void *v)
4846 chunk_kb ? "KB" : "B"); 4846 chunk_kb ? "KB" : "B");
4847 if (bitmap->file) { 4847 if (bitmap->file) {
4848 seq_printf(seq, ", file: "); 4848 seq_printf(seq, ", file: ");
4849 seq_path(seq, bitmap->file->f_vfsmnt, 4849 seq_path(seq, bitmap->file->f_path.mnt,
4850 bitmap->file->f_dentry," \t\n"); 4850 bitmap->file->f_path.dentry," \t\n");
4851 } 4851 }
4852 4852
4853 seq_printf(seq, "\n"); 4853 seq_printf(seq, "\n");