summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_slice.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_slice.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_slice.c')
-rw-r--r--sys/geom/geom_slice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index 64c000e..8a76910 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -119,7 +119,7 @@ g_slice_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--;
- error = g_access_rel(cp, dr, dw, de);
+ error = g_access(cp, dr, dw, de);
return (error);
}
@@ -463,7 +463,7 @@ g_slice_new(struct g_class *mp, u_int slices, struct g_provider *pp, struct g_co
cp = g_new_consumer(gp);
error = g_attach(cp, pp);
if (error == 0)
- error = g_access_rel(cp, 1, 0, 0);
+ error = g_access(cp, 1, 0, 0);
if (error) {
g_wither_geom(gp, ENXIO);
return (NULL);
OpenPOWER on IntegriCloud