dm: move dm_table_destroy() to same header as dm_table_create()

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 <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
This commit is contained in:
Brian Norris 2017-03-28 11:31:02 -07:00 • committed by Mike Snitzer
commit f6e7baadd9
2 changed files with 5 additions and 1 deletions

View file

@ -49,7 +49,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);