Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm: Remove unused dm_set_md_type

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>

authored by

Dr. David Alan Gilbert and committed by
Mikulas Patocka
feb83afa 047b821c

-7
-6
drivers/md/dm.c
··· 2517 2517 mutex_unlock(&md->type_lock); 2518 2518 } 2519 2519 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 - 2526 2520 enum dm_queue_mode dm_get_md_type(struct mapped_device *md) 2527 2521 { 2528 2522 return md->type;
-1
drivers/md/dm.h
··· 76 76 77 77 void dm_lock_md_type(struct mapped_device *md); 78 78 void dm_unlock_md_type(struct mapped_device *md); 79 - void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type); 80 79 enum dm_queue_mode dm_get_md_type(struct mapped_device *md); 81 80 struct target_type *dm_get_immutable_target_type(struct mapped_device *md); 82 81