diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2023-09-18 17:33:29 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-10-06 19:09:25 -0400 |
commit | f1445032173d4a49eb8b4a0808db499966897d9a (patch) | |
tree | a6d1d00afab88cece6d22d4caf63c06b08227689 /drivers/md/dm.h | |
parent | 3da5d2de92387a8322965c7fb1365f7cae690e5a (diff) |
dm: shortcut the calls to linear_map and stripe_map
Shortcut the calls to linear_map and stripe_map, so that they don't suffer
the overhead of retpolines used for indirect calls.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm.h')
-rw-r--r-- | drivers/md/dm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm.h b/drivers/md/dm.h index f682295af91f..7f1acbf6bd9e 100644 --- a/drivers/md/dm.h +++ b/drivers/md/dm.h @@ -188,9 +188,11 @@ void dm_kobject_release(struct kobject *kobj); /* * Targets for linear and striped mappings */ +int linear_map(struct dm_target *ti, struct bio *bio); int dm_linear_init(void); void dm_linear_exit(void); +int stripe_map(struct dm_target *ti, struct bio *bio); int dm_stripe_init(void); void dm_stripe_exit(void); |