The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6714e127945c736857cd86aff41d9cbd29ce7f7c
commit 6714e127945c736857cd86aff41d9cbd29ce7f7c Author: Miroslav Cimerman <m...@doas.su> AuthorDate: 2025-08-02 17:23:40 +0000 Commit: Warner Losh <i...@freebsd.org> CommitDate: 2025-09-05 18:42:20 +0000 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 <m...@doas.su> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1800 --- sys/geom/stripe/g_stripe.c | 6 ++---- 1 file 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];