Skip to content

Commit feb83af

Browse files
Dr. David Alan GilbertMikulas Patocka
authored andcommitted
dm: Remove unused dm_set_md_type
dm_set_md_type() has been unused since commit ba30585 ("dm: move setting md->type into dm_setup_md_queue") Remove it. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
1 parent 047b821 commit feb83af

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

drivers/md/dm.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2517,12 +2517,6 @@ void dm_unlock_md_type(struct mapped_device *md)
25172517
mutex_unlock(&md->type_lock);
25182518
}
25192519

2520-
void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type)
2521-
{
2522-
BUG_ON(!mutex_is_locked(&md->type_lock));
2523-
md->type = type;
2524-
}
2525-
25262520
enum dm_queue_mode dm_get_md_type(struct mapped_device *md)
25272521
{
25282522
return md->type;

drivers/md/dm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ bool dm_table_request_based(struct dm_table *t);
7676

7777
void dm_lock_md_type(struct mapped_device *md);
7878
void dm_unlock_md_type(struct mapped_device *md);
79-
void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type);
8079
enum dm_queue_mode dm_get_md_type(struct mapped_device *md);
8180
struct target_type *dm_get_immutable_target_type(struct mapped_device *md);
8281

0 commit comments

Comments
 (0)