All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li Lingfeng <lilingfeng3@huawei.com>
To: <dm-devel@redhat.com>
Cc: <agk@redhat.com>, <snitzer@kernel.org>,
	<linux-kernel@vger.kernel.org>, <houtao1@huawei.com>,
	<yi.zhang@huawei.com>, <yangerkun@huawei.com>,
	<yukuai3@huawei.com>, <lilingfeng3@huawei.com>
Subject: [PATCH] dm: remove dm_set_md_type()
Date: Tue, 12 Sep 2023 20:26:05 +0800	[thread overview]
Message-ID: <20230912122605.3487911-1-lilingfeng3@huawei.com> (raw)

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


WARNING: multiple messages have this Message-ID (diff)
From: Li Lingfeng <lilingfeng3@huawei.com>
To: <dm-devel@redhat.com>
Cc: yi.zhang@huawei.com, yangerkun@huawei.com, snitzer@kernel.org,
	linux-kernel@vger.kernel.org, houtao1@huawei.com,
	yukuai3@huawei.com, lilingfeng3@huawei.com, agk@redhat.com
Subject: [dm-devel] [PATCH] dm: remove dm_set_md_type()
Date: Tue, 12 Sep 2023 20:26:05 +0800	[thread overview]
Message-ID: <20230912122605.3487911-1-lilingfeng3@huawei.com> (raw)

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

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


             reply	other threads:[~2023-09-12 12:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12 12:26 Li Lingfeng [this message]
2023-09-12 12:26 ` [dm-devel] [PATCH] dm: remove dm_set_md_type() Li Lingfeng
2023-10-28 11:10 ` Li Lingfeng
2023-10-28 11:10   ` Li Lingfeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230912122605.3487911-1-lilingfeng3@huawei.com \
    --to=lilingfeng3@huawei.com \
    --cc=agk@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=houtao1@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=snitzer@kernel.org \
    --cc=yangerkun@huawei.com \
    --cc=yi.zhang@huawei.com \
    --cc=yukuai3@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.