Remove unused event pointers in object structures.
Remove KASSERTS which checked that they were unused.
This commit is contained in:
parent
fd19a46265
commit
668ae29c71
@ -49,7 +49,6 @@ struct g_class;
|
||||
struct g_geom;
|
||||
struct g_consumer;
|
||||
struct g_provider;
|
||||
struct g_event;
|
||||
struct g_stat;
|
||||
struct thread;
|
||||
struct bio;
|
||||
@ -95,14 +94,12 @@ struct g_class {
|
||||
*/
|
||||
LIST_ENTRY(g_class) class;
|
||||
LIST_HEAD(,g_geom) geom;
|
||||
struct g_event *event;
|
||||
u_int protect;
|
||||
};
|
||||
|
||||
#define G_CLASS_INITIALIZER \
|
||||
.class = { 0, 0 }, \
|
||||
.geom = { 0 }, \
|
||||
.event = 0, \
|
||||
.protect = 0
|
||||
|
||||
/*
|
||||
@ -123,7 +120,6 @@ struct g_geom {
|
||||
g_access_t *access;
|
||||
g_orphan_t *orphan;
|
||||
void *softc;
|
||||
struct g_event *event;
|
||||
unsigned flags;
|
||||
#define G_GEOM_WITHER 1
|
||||
};
|
||||
@ -152,7 +148,6 @@ struct g_consumer {
|
||||
struct g_provider *provider;
|
||||
LIST_ENTRY(g_consumer) consumers; /* XXX: better name */
|
||||
int acr, acw, ace;
|
||||
struct g_event *event;
|
||||
int spoiled;
|
||||
struct devstat *stat;
|
||||
u_int nstart, nend;
|
||||
@ -169,7 +164,6 @@ struct g_provider {
|
||||
LIST_HEAD(,g_consumer) consumers;
|
||||
int acr, acw, ace;
|
||||
int error;
|
||||
struct g_event *event;
|
||||
TAILQ_ENTRY(g_provider) orphan;
|
||||
u_int index;
|
||||
off_t mediasize;
|
||||
|
@ -110,7 +110,6 @@ g_destroy_geom(struct g_geom *gp)
|
||||
|
||||
g_trace(G_T_TOPOLOGY, "g_destroy_geom(%p(%s))", gp, gp->name);
|
||||
g_topology_assert();
|
||||
KASSERT(gp->event == NULL, ("g_destroy_geom() with event"));
|
||||
KASSERT(LIST_EMPTY(&gp->consumer),
|
||||
("g_destroy_geom(%s) with consumer(s) [%p]",
|
||||
gp->name, LIST_FIRST(&gp->consumer)));
|
||||
@ -149,7 +148,6 @@ g_destroy_consumer(struct g_consumer *cp)
|
||||
|
||||
g_trace(G_T_TOPOLOGY, "g_destroy_consumer(%p)", cp);
|
||||
g_topology_assert();
|
||||
KASSERT(cp->event == NULL, ("g_destroy_consumer() with event"));
|
||||
KASSERT (cp->provider == NULL, ("g_destroy_consumer but attached"));
|
||||
KASSERT (cp->acr == 0, ("g_destroy_consumer with acr"));
|
||||
KASSERT (cp->acw == 0, ("g_destroy_consumer with acw"));
|
||||
@ -203,7 +201,6 @@ g_destroy_provider(struct g_provider *pp)
|
||||
struct g_consumer *cp;
|
||||
|
||||
g_topology_assert();
|
||||
KASSERT(pp->event == NULL, ("g_destroy_provider() with event"));
|
||||
KASSERT(LIST_EMPTY(&pp->consumers),
|
||||
("g_destroy_provider but attached"));
|
||||
KASSERT (pp->acr == 0, ("g_destroy_provider with acr"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user