summaryrefslogtreecommitdiff
path: root/include/linux/device-mapper.h
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@kernel.org>2022-07-05 21:00:36 +0300
committerMike Snitzer <snitzer@kernel.org>2022-07-07 18:49:33 +0300
commit2aec377a29250b942f14d3c16d49783da3e9df11 (patch)
tree6deeee9da1656b677617f7de3ef954e2f2d257cf /include/linux/device-mapper.h
parent8b211aaccb915bbf4f4a68f1910c4de701df393b (diff)
downloadlinux-2aec377a29250b942f14d3c16d49783da3e9df11.tar.xz
dm table: remove dm_table_get_num_targets() wrapper
More efficient and readable to just access table->num_targets directly. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r--include/linux/device-mapper.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index 47a01c7cffdf..920085dd7f3b 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -561,7 +561,6 @@ void dm_sync_table(struct mapped_device *md);
* Queries
*/
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);