]> git.baikalelectronics.ru Git - kernel.git/commit
dm table: remove dm_table_get_num_targets() wrapper
authorMike Snitzer <snitzer@kernel.org>
Tue, 5 Jul 2022 18:00:36 +0000 (14:00 -0400)
committerMike Snitzer <snitzer@kernel.org>
Thu, 7 Jul 2022 15:49:33 +0000 (11:49 -0400)
commit6480e43364e9e6a20edd219d1d85f7bc879598b7
tree6deeee9da1656b677617f7de3ef954e2f2d257cf
parent12ecb175b2b3fd7d89955f42bcddd548fdb11765
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>
drivers/md/dm-ima.c
drivers/md/dm-ioctl.c
drivers/md/dm-table.c
drivers/md/dm-zone.c
drivers/md/dm.c
include/linux/device-mapper.h