aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 27cd234cf682..9e8c1edd89dd 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -921,6 +921,16 @@ static struct mapped_device *dm_find_md(dev_t dev)
921 return md; 921 return md;
922} 922}
923 923
924struct mapped_device *dm_get_md(dev_t dev)
925{
926 struct mapped_device *md = dm_find_md(dev);
927
928 if (md)
929 dm_get(md);
930
931 return md;
932}
933
924void *dm_get_mdptr(dev_t dev) 934void *dm_get_mdptr(dev_t dev)
925{ 935{
926 struct mapped_device *md; 936 struct mapped_device *md;