diff options
author | phk <phk@FreeBSD.org> | 2004-02-12 22:42:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-12 22:42:11 +0000 |
commit | 124977fbb6c505edf20e1c4b862194c84d39f1eb (patch) | |
tree | b700329baa11c7dbd187df0ad4e8480d842ec8fa /sys/geom/geom_mirror.c | |
parent | e929b29355b485b504986972ea051a80ca2254e7 (diff) | |
download | FreeBSD-src-124977fbb6c505edf20e1c4b862194c84d39f1eb.zip FreeBSD-src-124977fbb6c505edf20e1c4b862194c84d39f1eb.tar.gz |
Remove the absolute count g_access_abs() function since experience has
shown that it is not useful.
Rename the relative count g_access_rel() function to g_access(), only
the name has changed.
Change all g_access_rel() calls in our CVS tree to call g_access() instead.
Add an #ifndef BURN_BRIDGES #define of g_access_rel() for source
code compatibility.
Diffstat (limited to 'sys/geom/geom_mirror.c')
-rw-r--r-- | sys/geom/geom_mirror.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/geom/geom_mirror.c b/sys/geom/geom_mirror.c index 092947e..ea14ae9 100644 --- a/sys/geom/geom_mirror.c +++ b/sys/geom/geom_mirror.c @@ -73,7 +73,7 @@ g_mirror_orphan(struct g_consumer *cp) g_topology_assert(); gp = cp->geom; - g_access_rel(cp, -cp->acr, -cp->acw, -cp->ace); + g_access(cp, -cp->acr, -cp->acw, -cp->ace); error = cp->provider->error; g_detach(cp); g_destroy_consumer(cp); @@ -143,12 +143,12 @@ g_mirror_access(struct g_provider *pp, int dr, int dw, int de) gp = pp->geom; error = ENXIO; LIST_FOREACH(cp1, &gp->consumer, consumer) { - error = g_access_rel(cp1, dr, dw, de); + error = g_access(cp1, dr, dw, de); if (error) { LIST_FOREACH(cp2, &gp->consumer, consumer) { if (cp2 == cp1) break; - g_access_rel(cp2, -dr, -dw, -de); + g_access(cp2, -dr, -dw, -de); } return (error); } @@ -177,7 +177,7 @@ g_mirror_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) gp->access= g_mirror_access; cp = g_new_consumer(gp); g_attach(cp, pp); - error = g_access_rel(cp, 1, 0, 0); + error = g_access(cp, 1, 0, 0); if (error) { g_detach(cp); g_destroy_consumer(cp); @@ -220,7 +220,7 @@ g_mirror_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) g_topology_lock(); if (buf != NULL) g_free(buf); - g_access_rel(cp, -1, 0, 0); + g_access(cp, -1, 0, 0); if (gp->softc != NULL) return (gp); g_detach(cp); |