diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-02-12 22:42:11 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-02-12 22:42:11 +0000 |
commit | d2bae332d63485cc6d3913e8b6f51af46d4fbaec (patch) | |
tree | b700329baa11c7dbd187df0ad4e8480d842ec8fa /sys/geom/geom_aes.c | |
parent | 63dfee88669de5b9affc8271c8fd6ee5c19425e0 (diff) |
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.
Notes
Notes:
svn path=/head/; revision=125755
Diffstat (limited to 'sys/geom/geom_aes.c')
-rw-r--r-- | sys/geom/geom_aes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/geom/geom_aes.c b/sys/geom/geom_aes.c index 867efd9fdaa8..1ac425ad9efe 100644 --- a/sys/geom/geom_aes.c +++ b/sys/geom/geom_aes.c @@ -266,7 +266,7 @@ g_aes_access(struct g_provider *pp, int dr, int dw, int de) /* ... and let go of it on last close */ if ((cp->acr + dr) == 0 && (cp->acw + dw) == 0 && (cp->ace + de) == 1) de--; - return (g_access_rel(cp, dr, dw, de)); + return (g_access(cp, dr, dw, de)); } static struct g_geom * @@ -288,7 +288,7 @@ g_aes_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) gp->spoiled = g_std_spoiled; 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); @@ -357,7 +357,7 @@ g_aes_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) g_topology_lock(); if (buf) 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); |