From nobody Fri Sep 5 18:42:16 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cJQF50MwDz66DFc; Fri, 05 Sep 2025 18:42:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cJQF45vGPz4Nj2; Fri, 05 Sep 2025 18:42:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757097736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i4VYCABEyuH1T2Ls6DIOCXFmPOSmJHatD69VPnJHcB8=; b=KFm7Rcp1zqAF7gjzW9vANH13Ph6I8YT+TGF+XZEgpLbeSQW/qPccZLelTZAWvRKC0i8S3B czInmccx3QwK8q75Ecmw+GQOfHIm9BM2+6KCVy2d/r58ZwP42xFbxojgGpH1thS87UAwpz vstFc26Qpn2JxAuOKIxIxd3gjISUfOIqMusrViA5R9zK6dGoSUyo2u0Rymk+sZJuhfqYrW CzAy2JMiRMDShfxUpI0ovCatNldvGg/ph00/66160ndaQRckzoWbEZJVwIAH1LRCP5WVwj p3BhHTwNfIYymnDGVb9jcpELS04NDuhMnqFCeosC0hm0UsnedvNwTxedpT0Fuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757097736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i4VYCABEyuH1T2Ls6DIOCXFmPOSmJHatD69VPnJHcB8=; b=O6dTaes6TH1lUTl5alLf6hZQvv4GdVsbVoD7Ah41w1WyZaTE58lEPa2mBp9PpYxWA10Epf 4O16Rxqg5oF5fGVTAucv3BYSaUbTRzHbuqBWJhqq6d6hVbmbaTn/d7LGWTei3Y7dSu7Bqo FbrhAVk9hqjbX5YpQ5DFmDB9zFlauyPh/zzjp6YrUpEPS3GEQaSx2qBFpeKIuA1RC1/+iT 5ukn3CZMXw77+aOr3gDp5/vWXc+oJYQWPvZdeDlzWYluvXAMBu3b1pO+z1uqB+PuKD+/kK tbjhh964oLVj18YHa/8ONAq/hPL6UZ551kYSAZsdJn6Mx5FR8e857nwQhUYDsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757097736; a=rsa-sha256; cv=none; b=Ypb9wMerfu/wBRQS/SwBhE/zqdoHOejwsXSWmOt5apvtMC7FldY4Om2VVPdANdMhCWhq7/ enY2tTW6nT0+ufVJUI8eMFj4Bkvy6wMPe8kL1a6TN0vj1lKpghug7890B0MvHkb7mxKXry bi+zhyfWtZZXcBUElVGgzDhhF3+QfEC/nE6AG4PvaUmJH/k44LNq2qncNAszkvCeJpNeTR As9UwiihY99LISuxdL/eeyGUhoqoVH65naJCgbJaEISgs8eFCThfjl9OeV2mLJ0Y6hEv5b 5TCH78Ccvqittb2NTsjELfhtrJgecpE7eEJMIHDrj+HgKXWGdJRA3xtsnsUCEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cJQF45LTwz10Zy; Fri, 05 Sep 2025 18:42:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 585IgG8d096202; Fri, 5 Sep 2025 18:42:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 585IgGni096199; Fri, 5 Sep 2025 18:42:16 GMT (envelope-from git) Date: Fri, 5 Sep 2025 18:42:16 GMT Message-Id: <202509051842.585IgGni096199@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 6714e127945c - main - gstripe: remove bio->bio_ma_n assignment List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6714e127945c736857cd86aff41d9cbd29ce7f7c Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6714e127945c736857cd86aff41d9cbd29ce7f7c commit 6714e127945c736857cd86aff41d9cbd29ce7f7c Author: Miroslav Cimerman AuthorDate: 2025-08-02 17:23:40 +0000 Commit: Warner Losh 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 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];