svn commit: r221755 - in stable/8/sys/geom: concat eli shsec stripe
Andrey V. Elsukov
ae at FreeBSD.org
Wed May 11 04:48:04 UTC 2011
Author: ae
Date: Wed May 11 04:48:03 2011
New Revision: 221755
URL: http://svn.freebsd.org/changeset/base/221755
Log:
MFC r221447:
Remove "for a moment" assignment. struct g_geom zeroed when allocated.
Modified:
stable/8/sys/geom/concat/g_concat.c
stable/8/sys/geom/eli/g_eli.c
stable/8/sys/geom/shsec/g_shsec.c
stable/8/sys/geom/stripe/g_stripe.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/geom/concat/g_concat.c
==============================================================================
--- stable/8/sys/geom/concat/g_concat.c Wed May 11 04:46:33 2011 (r221754)
+++ stable/8/sys/geom/concat/g_concat.c Wed May 11 04:48:03 2011 (r221755)
@@ -546,8 +546,6 @@ g_concat_create(struct g_class *mp, cons
}
}
gp = g_new_geomf(mp, "%s", md->md_name);
- gp->softc = NULL; /* for a moment */
-
sc = malloc(sizeof(*sc), M_CONCAT, M_WAITOK | M_ZERO);
gp->start = g_concat_start;
gp->spoiled = g_concat_orphan;
Modified: stable/8/sys/geom/eli/g_eli.c
==============================================================================
--- stable/8/sys/geom/eli/g_eli.c Wed May 11 04:46:33 2011 (r221754)
+++ stable/8/sys/geom/eli/g_eli.c Wed May 11 04:48:03 2011 (r221755)
@@ -709,8 +709,6 @@ g_eli_create(struct gctl_req *req, struc
G_ELI_DEBUG(1, "Creating device %s%s.", bpp->name, G_ELI_SUFFIX);
gp = g_new_geomf(mp, "%s%s", bpp->name, G_ELI_SUFFIX);
- gp->softc = NULL; /* for a moment */
-
sc = malloc(sizeof(*sc), M_ELI, M_WAITOK | M_ZERO);
gp->start = g_eli_start;
/*
Modified: stable/8/sys/geom/shsec/g_shsec.c
==============================================================================
--- stable/8/sys/geom/shsec/g_shsec.c Wed May 11 04:46:33 2011 (r221754)
+++ stable/8/sys/geom/shsec/g_shsec.c Wed May 11 04:48:03 2011 (r221755)
@@ -545,8 +545,6 @@ g_shsec_create(struct g_class *mp, const
}
}
gp = g_new_geomf(mp, "%s", md->md_name);
- gp->softc = NULL; /* for a moment */
-
sc = malloc(sizeof(*sc), M_SHSEC, M_WAITOK | M_ZERO);
gp->start = g_shsec_start;
gp->spoiled = g_shsec_orphan;
Modified: stable/8/sys/geom/stripe/g_stripe.c
==============================================================================
--- stable/8/sys/geom/stripe/g_stripe.c Wed May 11 04:46:33 2011 (r221754)
+++ stable/8/sys/geom/stripe/g_stripe.c Wed May 11 04:48:03 2011 (r221755)
@@ -818,8 +818,6 @@ g_stripe_create(struct g_class *mp, cons
}
}
gp = g_new_geomf(mp, "%s", md->md_name);
- gp->softc = NULL; /* for a moment */
-
sc = malloc(sizeof(*sc), M_STRIPE, M_WAITOK | M_ZERO);
gp->start = g_stripe_start;
gp->spoiled = g_stripe_orphan;
More information about the svn-src-stable
mailing list