diff options
| author | Dr. David Alan Gilbert <linux@treblig.org> | 2024-10-03 02:15:50 +0100 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2024-11-20 11:38:04 +0100 |
| commit | feb83afa4e074a67b24811c9c00b688ca5c64b90 (patch) | |
| tree | b737db2edb8568caa94d2594fd8861765b856d04 /drivers/md/dm.c | |
| parent | 047b821ca37d262a4aca3133ced66455272cb03e (diff) | |
| download | linux-next-feb83afa4e074a67b24811c9c00b688ca5c64b90.tar.gz linux-next-feb83afa4e074a67b24811c9c00b688ca5c64b90.zip | |
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>
Diffstat (limited to 'drivers/md/dm.c')
| -rw-r--r-- | drivers/md/dm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 19230404d8c2..adf0dde68947 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -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; |
