Deleted Added
full compact
g_journal.c (170289) g_journal.c (170307)
1/*-
2 * Copyright (c) 2005-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2005-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/geom/journal/g_journal.c 170289 2007-06-04 18:25:08Z dwmalone $");
28__FBSDID("$FreeBSD: head/sys/geom/journal/g_journal.c 170307 2007-06-05 00:00:57Z jeff $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/limits.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>

--- 2015 unchanged lines hidden (view full) ---

2052{
2053 struct g_journal_softc *sc;
2054 struct g_geom *gp;
2055 struct g_provider *pp;
2056 struct bio *bp;
2057 time_t last_write;
2058 int type;
2059
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/limits.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>

--- 2015 unchanged lines hidden (view full) ---

2052{
2053 struct g_journal_softc *sc;
2054 struct g_geom *gp;
2055 struct g_provider *pp;
2056 struct bio *bp;
2057 time_t last_write;
2058 int type;
2059
2060 mtx_lock_spin(&sched_lock);
2060 thread_lock(curthread);
2061 sched_prio(curthread, PRIBIO);
2061 sched_prio(curthread, PRIBIO);
2062 mtx_unlock_spin(&sched_lock);
2062 thread_unlock(curthread);
2063
2064 sc = arg;
2065 type = 0; /* gcc */
2066
2067 if (sc->sc_flags & GJF_DEVICE_CLEAN) {
2068 GJ_DEBUG(0, "Journal %s clean.", sc->sc_name);
2069 g_journal_initialize(sc);
2070 } else {

--- 973 unchanged lines hidden ---
2063
2064 sc = arg;
2065 type = 0; /* gcc */
2066
2067 if (sc->sc_flags & GJF_DEVICE_CLEAN) {
2068 GJ_DEBUG(0, "Journal %s clean.", sc->sc_name);
2069 g_journal_initialize(sc);
2070 } else {

--- 973 unchanged lines hidden ---