]> www.infradead.org Git - users/hch/misc.git/commitdiff
dm: Remove unused dm_set_md_type
authorDr. David Alan Gilbert <linux@treblig.org>
Thu, 3 Oct 2024 01:15:50 +0000 (02:15 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Wed, 20 Nov 2024 10:38:04 +0000 (11:38 +0100)
dm_set_md_type() has been unused since commit
ba30585936b0 ("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>
drivers/md/dm.c
drivers/md/dm.h

index 19230404d8c2bd221a1671812e7b519519fe622e..adf0dde689475e0e674acac036058b435474a917 100644 (file)
@@ -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;
index 8ad782249af888400ce5d78b6a61b33c36afa586..d4062c3154db99651305667ccf89e91d20b27542 100644 (file)
@@ -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);