dm: use dm_table_get_device_name() where appropriate in targets
authorMike Snitzer <snitzer@redhat.com>
Sat, 19 Sep 2020 17:36:58 +0000 (13:36 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 29 Sep 2020 20:33:08 +0000 (16:33 -0400)
commitd4a512edcc65704c5df51909caeab0495ba0ced3
tree85abcd54756cdc73fb1c48a74cce54bedbac209a
parent33bd6f0693857492ab19869d79801437ac1e42ba
dm: use dm_table_get_device_name() where appropriate in targets

dm_table_get_device_name() avoids calling dm_table_get_md() followed by
dm_device_name() -- saves intermediate dm_table_get_md() call.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c
drivers/md/dm-mpath.c