From nobody Sun Apr 24 20:02:25 2022 X-Original-To: dev-commits-src-all@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 35B8A1A97D1D; Sun, 24 Apr 2022 20:02:26 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KmfFG0fcVz4pVQ; Sun, 24 Apr 2022 20:02:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650830546; 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=0wMmf4/UH2K61ihsqL/Hkh7ZYF2G5QX6b8SR5D69dHM=; b=rnrnJUtxZEbcEqEGCO4Tmdkajuf2Mtfm1de7wmvuUd+lH3oyehoeOWGN9ZThYni9fof7IM 4ZcActtuaaoRbA+jDNjX16pNAEAxgCj5XSzGvHU9TiThkcyImNh2AF4LvzYlb1PxHSUd0T IT3DItDoaZZvZM7477XahBN3k2i4lloRtawMzoqqWUOAdVNDCLZPQQ4PD/FI7fPqOj25UB UjCT5CjRIfT+TQvfxK1Ly2Wgpe/dB/y3M+xDl7oJ+GAEGGKx94WGNVLWyEJ0d89tV9xjty IZThLoO5W+WIABh0OJLSJxgDA+w5vOmSYOdVD2Ktfw8UlUbKTTqbISgWL2DJ+Q== 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 DA9FF484B; Sun, 24 Apr 2022 20:02:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23OK2Pfp048892; Sun, 24 Apr 2022 20:02:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23OK2PaF048891; Sun, 24 Apr 2022 20:02:25 GMT (envelope-from git) Date: Sun, 24 Apr 2022 20:02:25 GMT Message-Id: <202204242002.23OK2PaF048891@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: f58385f3daf6 - main - geom_vfs: make sc_orphaned a bool List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: f58385f3daf61df8810e84acdcc13aa43d6f8e27 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650830546; 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=0wMmf4/UH2K61ihsqL/Hkh7ZYF2G5QX6b8SR5D69dHM=; b=KzS6e+Me1a3WDZPY7qL/BJWgTlSqaXVN+11EKoVnWmqjkmRWaec/Q5sM7gfAfZokDaTI5k LdJhClWgun/ZfGu36NR2Ah+TGhPo1zOu0Oo0Hr4aGNw+c6EPDDXq8FIP9kT8K9eGjW5EnK lgvRYOJ70GXEkhWHJFbFGmzumy2jgMmCIbBtpbhlPd5MXEGKnL3nEAznEpNwpEiXDkDWSk XynqMBnzY0HjNCsWpj8NhPg0OZaZ78BrNLsl8+arcVnnIOSGsxbV6W7+n/7QUUOQLvHGSq yMBXYPY/qAQNGoqPs16tCzDpppl1Tz1Bjt3BPIHBnVHmoEVT7nyOgvZnec1cwA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650830546; a=rsa-sha256; cv=none; b=lvF75bYPezC1sK4KBEB0RyzqbZ8NyFlDqbkOGhM3lp+ZxIA1GgWdS6h3kcE/qxheCfxWZV Zmu9FHAHodl1ppaUr/iMVOOX0PmJgUAB1vTYRPs9Wk/EslVwoN4OieSQtKuqTOJBSxNLGp AYpnlngCF5aSaiHWcChEU6WrwVy8nMCZgZNldEpJqjhkgSP8t8guRQgCiLLftOWNe3Y0Ir xJj+SdOWyml6NNV97+AUBI6oxG9zQ9M2daojfvtB09vqX/HB1DSSD6slvK8/0tIF2xGbXg xZUdeaXExgzJjOo8RwLriBbugztEr25D2WVNPSE9fne0e5O1LuRfM2cIcQe5Jw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f58385f3daf61df8810e84acdcc13aa43d6f8e27 commit f58385f3daf61df8810e84acdcc13aa43d6f8e27 Author: Warner Losh AuthorDate: 2022-04-24 19:54:15 +0000 Commit: Warner Losh CommitDate: 2022-04-24 20:01:08 +0000 geom_vfs: make sc_orphaned a bool Differential Revision: https://reviews.freebsd.org/D35036 Sponsored by: Netflix --- sys/geom/geom_vfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/geom/geom_vfs.c b/sys/geom/geom_vfs.c index 592062b8b12a..beb5632f43d6 100644 --- a/sys/geom/geom_vfs.c +++ b/sys/geom/geom_vfs.c @@ -55,7 +55,7 @@ struct g_vfs_softc { struct bufobj *sc_bo; struct g_event *sc_event; int sc_active; - int sc_orphaned; + bool sc_orphaned; int sc_enxio_active; }; @@ -233,7 +233,7 @@ g_vfs_orphan(struct g_consumer *cp) event = g_alloc_event(M_WAITOK); mtx_lock(&sc->sc_mtx); KASSERT(sc->sc_event == NULL, ("g_vfs %p already has an event", sc)); - sc->sc_orphaned = 1; + sc->sc_orphaned = true; destroy = (sc->sc_active == 0); if (!destroy) { sc->sc_event = event;