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_subr.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_subr.c')
-rw-r--r-- | sys/geom/geom_subr.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index a56c0af..b6a9c7f 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -558,33 +558,15 @@ g_detach(struct g_consumer *cp) redo_rank(cp->geom); } - -/* - * g_access_abs() - * - * Access-check with absolute new values: Just fall through - * and use the relative version. - */ -int -g_access_abs(struct g_consumer *cp, int acr, int acw, int ace) -{ - - g_topology_assert(); - return(g_access_rel(cp, - acr - cp->acr, - acw - cp->acw, - ace - cp->ace)); -} - /* - * g_access_rel() + * g_access() * * Access-check with delta values. The question asked is "can provider * "cp" change the access counters by the relative amounts dc[rwe] ?" */ int -g_access_rel(struct g_consumer *cp, int dcr, int dcw, int dce) +g_access(struct g_consumer *cp, int dcr, int dcw, int dce) { struct g_provider *pp; int pr,pw,pe; @@ -592,7 +574,7 @@ g_access_rel(struct g_consumer *cp, int dcr, int dcw, int dce) pp = cp->provider; - g_trace(G_T_ACCESS, "g_access_rel(%p(%s), %d, %d, %d)", + g_trace(G_T_ACCESS, "g_access(%p(%s), %d, %d, %d)", cp, pp->name, dcr, dcw, dce); g_topology_assert(); |