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-stripe.c | |
parent | 3da5d2de92387a8322965c7fb1365f7cae690e5a (diff) | |
download | linux-f1445032173d4a49eb8b4a0808db499966897d9a.tar.gz |
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-stripe.c')
-rw-r--r-- | drivers/md/dm-stripe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index e2854a3cbd2826..c11619d82a7e1b 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c @@ -268,7 +268,7 @@ static int stripe_map_range(struct stripe_c *sc, struct bio *bio, return DM_MAPIO_SUBMITTED; } -static int stripe_map(struct dm_target *ti, struct bio *bio) +int stripe_map(struct dm_target *ti, struct bio *bio) { struct stripe_c *sc = ti->private; uint32_t stripe; |