diff options
author | pjd <pjd@FreeBSD.org> | 2006-11-01 22:16:53 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-11-01 22:16:53 +0000 |
commit | cf33008f77f45f702d505c68cd3bc82012fd47e7 (patch) | |
tree | 8e3d161d51311c97f8d70f6a92f55f36b384e7e5 /sys/geom/raid3 | |
parent | 24d04bdcf8d07b2968e6cec5ac0fee1081f16853 (diff) | |
download | FreeBSD-src-cf33008f77f45f702d505c68cd3bc82012fd47e7.zip FreeBSD-src-cf33008f77f45f702d505c68cd3bc82012fd47e7.tar.gz |
Change spaces to tabs where needed.
Diffstat (limited to 'sys/geom/raid3')
-rw-r--r-- | sys/geom/raid3/g_raid3.c | 40 | ||||
-rw-r--r-- | sys/geom/raid3/g_raid3_ctl.c | 8 |
2 files changed, 24 insertions, 24 deletions
diff --git a/sys/geom/raid3/g_raid3.c b/sys/geom/raid3/g_raid3.c index 3cb1c6c..e08e331 100644 --- a/sys/geom/raid3/g_raid3.c +++ b/sys/geom/raid3/g_raid3.c @@ -1513,8 +1513,8 @@ static void g_raid3_regular_delay(struct g_raid3_softc *sc, struct bio *bp) { - G_RAID3_LOGREQ(2, bp, "Delaying request."); - bioq_insert_head(&sc->sc_regular_delayed, bp); + G_RAID3_LOGREQ(2, bp, "Delaying request."); + bioq_insert_head(&sc->sc_regular_delayed, bp); } /* @@ -1524,8 +1524,8 @@ static void g_raid3_sync_delay(struct g_raid3_softc *sc, struct bio *bp) { - G_RAID3_LOGREQ(2, bp, "Delaying synchronization request."); - bioq_insert_tail(&sc->sc_sync_delayed, bp); + G_RAID3_LOGREQ(2, bp, "Delaying synchronization request."); + bioq_insert_tail(&sc->sc_sync_delayed, bp); } /* @@ -1535,13 +1535,13 @@ g_raid3_sync_delay(struct g_raid3_softc *sc, struct bio *bp) static void g_raid3_regular_release(struct g_raid3_softc *sc) { - struct bio *bp, *bp2; + struct bio *bp, *bp2; - TAILQ_FOREACH_SAFE(bp, &sc->sc_regular_delayed.queue, bio_queue, bp2) { - if (g_raid3_sync_collision(sc, bp)) - continue; - bioq_remove(&sc->sc_regular_delayed, bp); - G_RAID3_LOGREQ(2, bp, "Releasing delayed request (%p).", bp); + TAILQ_FOREACH_SAFE(bp, &sc->sc_regular_delayed.queue, bio_queue, bp2) { + if (g_raid3_sync_collision(sc, bp)) + continue; + bioq_remove(&sc->sc_regular_delayed, bp); + G_RAID3_LOGREQ(2, bp, "Releasing delayed request (%p).", bp); mtx_lock(&sc->sc_queue_mtx); bioq_insert_head(&sc->sc_queue, bp); #if 0 @@ -1552,7 +1552,7 @@ g_raid3_regular_release(struct g_raid3_softc *sc) wakeup(&sc->sc_queue); #endif mtx_unlock(&sc->sc_queue_mtx); - } + } } /* @@ -1562,16 +1562,16 @@ g_raid3_regular_release(struct g_raid3_softc *sc) static void g_raid3_sync_release(struct g_raid3_softc *sc) { - struct bio *bp, *bp2; + struct bio *bp, *bp2; - TAILQ_FOREACH_SAFE(bp, &sc->sc_sync_delayed.queue, bio_queue, bp2) { - if (g_raid3_regular_collision(sc, bp)) - continue; - bioq_remove(&sc->sc_sync_delayed, bp); - G_RAID3_LOGREQ(2, bp, - "Releasing delayed synchronization request."); - g_io_request(bp, bp->bio_from); - } + TAILQ_FOREACH_SAFE(bp, &sc->sc_sync_delayed.queue, bio_queue, bp2) { + if (g_raid3_regular_collision(sc, bp)) + continue; + bioq_remove(&sc->sc_sync_delayed, bp); + G_RAID3_LOGREQ(2, bp, + "Releasing delayed synchronization request."); + g_io_request(bp, bp->bio_from); + } } /* diff --git a/sys/geom/raid3/g_raid3_ctl.c b/sys/geom/raid3/g_raid3_ctl.c index 7847e29..67d1f44 100644 --- a/sys/geom/raid3/g_raid3_ctl.c +++ b/sys/geom/raid3/g_raid3_ctl.c @@ -471,11 +471,11 @@ g_raid3_ctl_insert(struct gctl_req *req, struct g_class *mp) g_raid3_fill_metadata(disk, &md); sx_xunlock(&sc->sc_lock); md.md_syncid = 0; - md.md_dflags = 0; + md.md_dflags = 0; if (*hardcode) - strlcpy(md.md_provider, pp->name, sizeof(md.md_provider)); - else - bzero(md.md_provider, sizeof(md.md_provider)); + strlcpy(md.md_provider, pp->name, sizeof(md.md_provider)); + else + bzero(md.md_provider, sizeof(md.md_provider)); md.md_provsize = pp->mediasize; sector = g_malloc(pp->sectorsize, M_WAITOK); raid3_metadata_encode(&md, sector); |