From: Mike Snitzer <snitzer@redhat.com>
To: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Cc: dm-devel@redhat.com, Alasdair Kergon <agk@redhat.com>
Subject: Re: [PATCH 1/2] dm: add dm_table_device_name()
Date: Tue, 9 Oct 2018 15:39:42 -0400 [thread overview]
Message-ID: <20181009193942.GA4974@redhat.com> (raw)
In-Reply-To: <ebd2659c89288e3a0b3e72ba20d2ff141bba1114.1539113382.git.mirq-linux@rere.qmqm.pl>
On Tue, Oct 09 2018 at 3:36pm -0400,
Michał Mirosław <mirq-linux@rere.qmqm.pl> wrote:
> Add a shortcut for dm_device_name(dm_table_get_md(t)).
>
> Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
> ---
> drivers/md/dm-table.c | 6 ++++++
> include/linux/device-mapper.h | 1 +
> 2 files changed, 7 insertions(+)
>
> diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
> index 3d0e2c198f06..1f4ab9c8b9a8 100644
> --- a/drivers/md/dm-table.c
> +++ b/drivers/md/dm-table.c
> @@ -2079,6 +2079,12 @@ struct mapped_device *dm_table_get_md(struct dm_table *t)
> }
> EXPORT_SYMBOL(dm_table_get_md);
>
> +const char *dm_table_device_name(struct dm_table *t)
> +{
> + return dm_device_name(t->md);
> +}
> +EXPORT_SYMBOL(dm_table_device_name);
> +
> void dm_table_run_md_queue_async(struct dm_table *t)
> {
> struct mapped_device *md;
This needs to be EXPORT_SYMBOL_GPL
> diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
> index 6fb0808e87c8..0d63f7e5261c 100644
> --- a/include/linux/device-mapper.h
> +++ b/include/linux/device-mapper.h
> @@ -490,6 +490,7 @@ sector_t dm_table_get_size(struct dm_table *t);
> unsigned int dm_table_get_num_targets(struct dm_table *t);
> fmode_t dm_table_get_mode(struct dm_table *t);
> struct mapped_device *dm_table_get_md(struct dm_table *t);
> +const char *dm_table_device_name(struct dm_table *t);
>
> /*
> * Trigger an event.
> --
> 2.19.1
>
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
prev parent reply other threads:[~2018-10-09 19:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-09 19:27 [PATCH] dm-crypt: make workqueue names device-specific Michał Mirosław
2018-10-09 19:36 ` [PATCH 1/2] dm: add dm_table_device_name() Michał Mirosław
2018-10-09 19:36 ` [PATCH 2/2 v2] dm-crypt: make workqueue names device-specific Michał Mirosław
2018-10-09 19:42 ` Mike Snitzer
2018-10-09 20:13 ` [PATCH v2 1/2] dm: add dm_table_device_name() Michał Mirosław
2018-10-09 20:13 ` [PATCH v3 2/2] dm-crypt: make workqueue names device-specific Michał Mirosław
2018-10-09 19:39 ` Mike Snitzer [this message]
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=20181009193942.GA4974@redhat.com \
--to=snitzer@redhat.com \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
--cc=mirq-linux@rere.qmqm.pl \
/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.