diff options
author | Brian Norris <briannorris@chromium.org> | 2017-03-28 11:31:02 -0700 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-01-17 09:16:06 -0500 |
commit | f6e7baadd96bd746d3fb584959d3f152189d05e1 (patch) | |
tree | e5c0b37f6aa06c135f3901265639ed9d86a61104 /include/linux/device-mapper.h | |
parent | 67ac901c553bab4bcc05ed1253829bf462c26b1f (diff) | |
download | lwn-f6e7baadd96bd746d3fb584959d3f152189d05e1.tar.gz lwn-f6e7baadd96bd746d3fb584959d3f152189d05e1.zip |
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 <briannorris@chromium.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 41ec228b02a6..9ba84532947d 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h @@ -460,6 +460,11 @@ void dm_table_set_type(struct dm_table *t, enum dm_queue_mode 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); |