aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Cimerman <mc@doas.su>2025-08-02 17:23:40 +0000
committerWarner Losh <imp@FreeBSD.org>2025-09-05 18:42:20 +0000
commit6714e127945c736857cd86aff41d9cbd29ce7f7c (patch)
tree8c2787ddf5423f12849e4b2285d014985f8ea8d5
parent7fa1552a6a6db281ce9c7dd03dc035609a87fb6f (diff)
gstripe: remove bio->bio_ma_n assignment
We shouldn't be manipulating the parent's bio at all (except to update the number of children). physio() already set this properly as well, in addition. Signed-off-by: Miroslav Cimerman <mc@doas.su> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1800
-rw-r--r--sys/geom/stripe/g_stripe.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/geom/stripe/g_stripe.c b/sys/geom/stripe/g_stripe.c
index 6f336c18c8e6..669936ba0dbf 100644
--- a/sys/geom/stripe/g_stripe.c
+++ b/sys/geom/stripe/g_stripe.c
@@ -454,11 +454,9 @@ g_stripe_start_economic(struct bio *bp, u_int no, off_t offset, off_t length)
cbp->bio_done = g_stripe_done;
cbp->bio_offset = offset;
cbp->bio_length = length;
- if ((bp->bio_flags & BIO_UNMAPPED) != 0) {
- bp->bio_ma_n = round_page(bp->bio_ma_offset +
- bp->bio_length) / PAGE_SIZE;
+ if ((bp->bio_flags & BIO_UNMAPPED) != 0)
addr = NULL;
- } else
+ else
addr = bp->bio_data;
cbp->bio_caller2 = sc->sc_disks[no];