summaryrefslogtreecommitdiffstats
path: root/sys/geom/concat/g_concat.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-03-01 17:32:48 +0000
committerpjd <pjd@FreeBSD.org>2004-03-01 17:32:48 +0000
commit182ad8928d539e30ddbabbb4a913bb61c08cfb11 (patch)
tree61672c851a5ea575d64f28109659aa72c49470f1 /sys/geom/concat/g_concat.c
parent2cfb8dc3b29e3555673adf825415a9ac9a3af51b (diff)
downloadFreeBSD-src-182ad8928d539e30ddbabbb4a913bb61c08cfb11.zip
FreeBSD-src-182ad8928d539e30ddbabbb4a913bb61c08cfb11.tar.gz
We don't need d_length field.
Diffstat (limited to 'sys/geom/concat/g_concat.c')
-rw-r--r--sys/geom/concat/g_concat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c
index eb7db86..f178e91 100644
--- a/sys/geom/concat/g_concat.c
+++ b/sys/geom/concat/g_concat.c
@@ -286,7 +286,6 @@ g_concat_check_and_run(struct g_concat_softc *sc)
disk->d_consumer->provider->mediasize;
if (sc->sc_type == G_CONCAT_TYPE_AUTOMATIC)
disk->d_end -= disk->d_consumer->provider->sectorsize;
- disk->d_length = disk->d_end - disk->d_start;
start = disk->d_end;
}
/* We have sc->sc_disks[sc->sc_ndisks - 1].d_end in 'start'. */
@@ -383,7 +382,6 @@ g_concat_add_disk(struct g_concat_softc *sc, struct g_provider *pp, u_int no)
disk->d_softc = sc;
disk->d_start = 0; /* not yet */
disk->d_end = 0; /* not yet */
- disk->d_length = 0; /* not yet */
disk->d_valid = 1;
G_CONCAT_DEBUG(0, "Disk %s attached to %s.", pp->name, gp->name);
OpenPOWER on IntegriCloud