Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1621413

[PATCH 1/5] dm: move dm_table_destroy() to same header as dm_table_create()

From Enric Balletbo i Serra <enric.balletbo@collabora.com>
Newsgroups linux.kernel
Subject [PATCH 1/5] dm: move dm_table_destroy() to same header as dm_table_create()
Date 2017-04-11 17:40 +0200
Message-ID <tv63D-nH-9@gated-at.bofh.it> (permalink)
References <tv63D-nH-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Brian Norris <briannorris@chromium.org>

If anyone is going to use dm_table_create(), they probably should be
able to use dm_table_destroy() too. Move the dm_table_destroy()
definition outside the private header, near dm_table_create()

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
 drivers/md/dm.h               | 1 -
 include/linux/device-mapper.h | 5 +++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/md/dm.h b/drivers/md/dm.h
index f298b01..c54d2f1 100644
--- a/drivers/md/dm.h
+++ b/drivers/md/dm.h
@@ -48,7 +48,6 @@ struct dm_md_mempools;
 /*-----------------------------------------------------------------
  * Internal table functions.
  *---------------------------------------------------------------*/
-void dm_table_destroy(struct dm_table *t);
 void dm_table_event_callback(struct dm_table *t,
 			     void (*fn)(void *), void *context);
 struct dm_target *dm_table_get_target(struct dm_table *t, unsigned int index);
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index a7e6903..70cb6af 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -472,6 +472,11 @@ void dm_table_set_type(struct dm_table *t, unsigned type);
 int dm_table_complete(struct dm_table *t);
 
 /*
+ * Destroy the table when finished.
+ */
+void dm_table_destroy(struct dm_table *t);
+
+/*
  * Target may require that it is never sent I/O larger than len.
  */
 int __must_check dm_set_target_max_io_len(struct dm_target *ti, sector_t len);
-- 
2.9.3

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] dm: boot a mapped device without an initramfs Enric Balletbo i Serra <enric.balletbo@collabora.com> - 2017-04-11 17:40 +0200
  [PATCH 1/5] dm: move dm_table_destroy() to same header as dm_table_create() Enric Balletbo i Serra <enric.balletbo@collabora.com> - 2017-04-11 17:40 +0200
  [PATCH 5/5] dm verity: add support for version 0 of the on-disk format Enric Balletbo i Serra <enric.balletbo@collabora.com> - 2017-04-11 17:40 +0200
    Re: [PATCH 5/5] dm verity: add support for version 0 of the on-disk  format Milan Broz <gmazyland@gmail.com> - 2017-04-11 19:30 +0200
      Re: [PATCH 5/5] dm verity: add support for version 0 of the on-disk  format Enric Balletbo i Serra <enric.balletbo@collabora.com> - 2017-04-11 21:50 +0200
  [PATCH 2/5] dm: move dm definitions outside the private header to boot dm targets. Enric Balletbo i Serra <enric.balletbo@collabora.com> - 2017-04-11 17:40 +0200
  [PATCH 3/5] dm: export a table+mapped device to the ioctl interface Enric Balletbo i Serra <enric.balletbo@collabora.com> - 2017-04-11 17:40 +0200
  [PATCH 4/5] init: add support to directly boot to a mapped device Enric Balletbo i Serra <enric.balletbo@collabora.com> - 2017-04-11 17:40 +0200
    Re: [PATCH 4/5] init: add support to directly boot to a mapped device kbuild test robot <lkp@intel.com> - 2017-04-12 02:10 +0200

csiph-web