* [PATCH] dm: remove dm_set_md_type()
@ 2023-09-12 12:26 Li Lingfeng
2023-10-28 11:10 ` Li Lingfeng
0 siblings, 1 reply; 2+ messages in thread
From: Li Lingfeng @ 2023-09-12 12:26 UTC (permalink / raw)
To: dm-devel
Cc: agk, snitzer, linux-kernel, houtao1, yi.zhang, yangerkun,
yukuai3, lilingfeng3
Commit ba30585936b0 ("dm: move setting md->type into dm_setup_md_queue")
has removed the only reference to dm_set_md_type(), so remove
dm_set_md_type() now.
Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
---
drivers/md/dm.c | 6 ------
drivers/md/dm.h | 1 -
2 files changed, 7 deletions(-)
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index f0f118ab20fa..6b9d04ca09d0 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -2316,12 +2316,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;
diff --git a/drivers/md/dm.h b/drivers/md/dm.h
index f682295af91f..cc55ef3441be 100644
--- a/drivers/md/dm.h
+++ b/drivers/md/dm.h
@@ -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);
--
2.31.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] dm: remove dm_set_md_type()
2023-09-12 12:26 [PATCH] dm: remove dm_set_md_type() Li Lingfeng
@ 2023-10-28 11:10 ` Li Lingfeng
0 siblings, 0 replies; 2+ messages in thread
From: Li Lingfeng @ 2023-10-28 11:10 UTC (permalink / raw)
To: dm-devel
Cc: agk, snitzer, linux-kernel, houtao1, yi.zhang, yangerkun, yukuai3, hch
Friendly ping ...
Thanks
在 2023/9/12 20:26, Li Lingfeng 写道:
> Commit ba30585936b0 ("dm: move setting md->type into dm_setup_md_queue")
> has removed the only reference to dm_set_md_type(), so remove
> dm_set_md_type() now.
>
> Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
> ---
> drivers/md/dm.c | 6 ------
> drivers/md/dm.h | 1 -
> 2 files changed, 7 deletions(-)
>
> diff --git a/drivers/md/dm.c b/drivers/md/dm.c
> index f0f118ab20fa..6b9d04ca09d0 100644
> --- a/drivers/md/dm.c
> +++ b/drivers/md/dm.c
> @@ -2316,12 +2316,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;
> diff --git a/drivers/md/dm.h b/drivers/md/dm.h
> index f682295af91f..cc55ef3441be 100644
> --- a/drivers/md/dm.h
> +++ b/drivers/md/dm.h
> @@ -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);
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-28 11:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12 12:26 [PATCH] dm: remove dm_set_md_type() Li Lingfeng
2023-10-28 11:10 ` Li Lingfeng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®