Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2022 20:02:25 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f58385f3daf6 - main - geom_vfs: make sc_orphaned a bool
Message-ID:  <202204242002.23OK2PaF048891@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=f58385f3daf61df8810e84acdcc13aa43d6f8e27

commit f58385f3daf61df8810e84acdcc13aa43d6f8e27
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-24 19:54:15 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204242002.23OK2PaF048891>