Commit feb83afa authored by Dr. David Alan Gilbert's avatar Dr. David Alan Gilbert Committed by Mikulas Patocka
Browse files

dm: Remove unused dm_set_md_type



dm_set_md_type() has been unused since commit
ba305859 ("dm: move setting md->type into dm_setup_md_queue")

Remove it.

Signed-off-by: default avatarDr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent 047b821c
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -2517,12 +2517,6 @@ void dm_unlock_md_type(struct mapped_device *md)
	mutex_unlock(&md->type_lock);
}

void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type)
{
	BUG_ON(!mutex_is_locked(&md->type_lock));
	md->type = type;
}

enum dm_queue_mode dm_get_md_type(struct mapped_device *md)
{
	return md->type;
+0 −1
Original line number Diff line number Diff line
@@ -76,7 +76,6 @@ bool dm_table_request_based(struct dm_table *t);

void dm_lock_md_type(struct mapped_device *md);
void dm_unlock_md_type(struct mapped_device *md);
void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type);
enum dm_queue_mode dm_get_md_type(struct mapped_device *md);
struct target_type *dm_get_immutable_target_type(struct mapped_device *md);