diff options
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 6982f86db6dc..3ed2e53b9eb6 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
@@ -21,6 +21,8 @@ | |||
21 | #include <linux/hdreg.h> | 21 | #include <linux/hdreg.h> |
22 | #include <linux/blktrace_api.h> | 22 | #include <linux/blktrace_api.h> |
23 | 23 | ||
24 | #define DM_MSG_PREFIX "core" | ||
25 | |||
24 | static const char *_name = DM_NAME; | 26 | static const char *_name = DM_NAME; |
25 | 27 | ||
26 | static unsigned int major = 0; | 28 | static unsigned int major = 0; |
@@ -1108,6 +1110,12 @@ void dm_get(struct mapped_device *md) | |||
1108 | atomic_inc(&md->holders); | 1110 | atomic_inc(&md->holders); |
1109 | } | 1111 | } |
1110 | 1112 | ||
1113 | const char *dm_device_name(struct mapped_device *md) | ||
1114 | { | ||
1115 | return md->name; | ||
1116 | } | ||
1117 | EXPORT_SYMBOL_GPL(dm_device_name); | ||
1118 | |||
1111 | void dm_put(struct mapped_device *md) | 1119 | void dm_put(struct mapped_device *md) |
1112 | { | 1120 | { |
1113 | struct dm_table *map; | 1121 | struct dm_table *map; |