summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_dev.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-12 22:42:11 +0000
committerphk <phk@FreeBSD.org>2004-02-12 22:42:11 +0000
commit124977fbb6c505edf20e1c4b862194c84d39f1eb (patch)
treeb700329baa11c7dbd187df0ad4e8480d842ec8fa /sys/geom/geom_dev.c
parente929b29355b485b504986972ea051a80ca2254e7 (diff)
downloadFreeBSD-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_dev.c')
-rw-r--r--sys/geom/geom_dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c
index baad2ee..97abc2a 100644
--- a/sys/geom/geom_dev.c
+++ b/sys/geom/geom_dev.c
@@ -213,7 +213,7 @@ g_dev_open(dev_t dev, int flags, int fmt, struct thread *td)
if (dev->si_devsw == NULL)
error = ENXIO; /* We were orphaned */
else
- error = g_access_rel(cp, r, w, e);
+ error = g_access(cp, r, w, e);
g_topology_unlock();
g_waitidle();
if (!error)
@@ -245,7 +245,7 @@ g_dev_close(dev_t dev, int flags, int fmt, struct thread *td)
if (dev->si_devsw == NULL)
error = ENXIO; /* We were orphaned */
else
- error = g_access_rel(cp, r, w, e);
+ error = g_access(cp, r, w, e);
for (i = 0; i < 10 * hz;) {
if (cp->acr != 0 || cp->acw != 0)
break;
@@ -434,7 +434,7 @@ g_dev_orphan(struct g_consumer *cp)
msleep(&dev, NULL, PRIBIO, "gdevorphan", hz / 10);
if (cp->acr > 0 || cp->acw > 0 || cp->ace > 0)
- g_access_rel(cp, -cp->acr, -cp->acw, -cp->ace);
+ g_access(cp, -cp->acr, -cp->acw, -cp->ace);
g_detach(cp);
g_destroy_consumer(cp);
OpenPOWER on IntegriCloud