diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2018-10-09 16:13:42 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-10-18 12:10:02 -0400 |
commit | f349b0a3e1f0d184374936f1b2a49352f8a4b1c8 (patch) | |
tree | 7b76fdee1be7b14b70fea8bdf729ac826158d9bc /drivers/md | |
parent | 800a7340ab7dd667edf95e74d8e4f23a17e87076 (diff) |
dm: add dm_table_device_name()
Add a shortcut for dm_device_name(dm_table_get_md(t)).
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-table.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 618edfc3846f..49ab0cbef739 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c | |||
@@ -2059,6 +2059,12 @@ struct mapped_device *dm_table_get_md(struct dm_table *t) | |||
2059 | } | 2059 | } |
2060 | EXPORT_SYMBOL(dm_table_get_md); | 2060 | EXPORT_SYMBOL(dm_table_get_md); |
2061 | 2061 | ||
2062 | const char *dm_table_device_name(struct dm_table *t) | ||
2063 | { | ||
2064 | return dm_device_name(t->md); | ||
2065 | } | ||
2066 | EXPORT_SYMBOL_GPL(dm_table_device_name); | ||
2067 | |||
2062 | void dm_table_run_md_queue_async(struct dm_table *t) | 2068 | void dm_table_run_md_queue_async(struct dm_table *t) |
2063 | { | 2069 | { |
2064 | struct mapped_device *md; | 2070 | struct mapped_device *md; |