aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2006-12-08 05:36:13 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:38 -0500
commit2e7b651df113c8a463853e4169951c52c39f9d19 (patch)
tree44749ea9d81931cbe5a753b972f6b9fde92a6496 /drivers/md
parent32694850a91bd4fedcdd4a46292f870588be81d1 (diff)
[PATCH] remove the old bd_mutex lockdep annotation
Remove the old complex and crufty bd_mutex annotation. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Neil Brown <neilb@cse.unsw.edu.au> Cc: Ingo Molnar <mingo@elte.hu> Cc: Arjan van de Ven <arjan@linux.intel.com> Cc: Jason Baron <jbaron@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md')
-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);