* [PATCH] blocklayout: fix blocklayoutdev.c for new blkdev_get_by_dev()
@ 2011-01-21 20:42 Jim Rees
0 siblings, 0 replies; only message in thread
From: Jim Rees @ 2011-01-21 20:42 UTC (permalink / raw)
To: Benny Halevy; +Cc: linux-nfs, peter honeyman
blkdev_get has been replaced by blkdev_get_by_dev, which now handles
exclusive use too (which we don't use). Fix uses in blocklayout to match.
Signed-off-by: Jim Rees <rees@umich.edu>
---
fs/nfs/blocklayout/blocklayoutdev.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/nfs/blocklayout/blocklayoutdev.c b/fs/nfs/blocklayout/blocklayoutdev.c
index 17bd25a..23469e3 100644
--- a/fs/nfs/blocklayout/blocklayoutdev.c
+++ b/fs/nfs/blocklayout/blocklayoutdev.c
@@ -55,7 +55,7 @@ struct block_device *nfs4_blkdev_get(dev_t dev)
struct block_device *bd;
dprintk("%s enter\n", __func__);
- bd = open_by_devnum(dev, FMODE_READ);
+ bd = blkdev_get_by_dev(dev, FMODE_READ, NULL);
if (IS_ERR(bd))
goto fail;
return bd;
@@ -72,7 +72,6 @@ int nfs4_blkdev_put(struct block_device *bdev)
{
dprintk("%s for device %d:%d\n", __func__, MAJOR(bdev->bd_dev),
MINOR(bdev->bd_dev));
- bd_release(bdev);
return blkdev_put(bdev, FMODE_READ);
}
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-21 20:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-21 20:42 [PATCH] blocklayout: fix blocklayoutdev.c for new blkdev_get_by_dev() Jim Rees
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).