From 22006077c2446ea98e0602f970cb428bb25acbd5 Mon Sep 17 00:00:00 2001 From: mav Date: Thu, 6 Oct 2016 15:35:36 +0000 Subject: MFC r306279: Use g_wither_provider() where applicable. It is just a helper function combining G_PF_WITHER setting with g_orphan_provider(). --- sys/geom/journal/g_journal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/geom/journal') diff --git a/sys/geom/journal/g_journal.c b/sys/geom/journal/g_journal.c index 0678003..d4d6a68 100644 --- a/sys/geom/journal/g_journal.c +++ b/sys/geom/journal/g_journal.c @@ -2462,8 +2462,7 @@ g_journal_destroy(struct g_journal_softc *sc) GJ_DEBUG(1, "Marking %s as clean.", sc->sc_name); g_journal_metadata_update(sc); g_topology_lock(); - pp->flags |= G_PF_WITHER; - g_orphan_provider(pp, ENXIO); + g_wither_provider(pp, ENXIO); } else { g_topology_lock(); } -- cgit v1.1