aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2007-04-29 00:41:29 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2007-04-29 00:41:29 +0000
commitf2c93563281806e0138b517365eedf4e433a3d6b (patch)
tree5dc92163128989c6b9ececfa01fdd9358da43980
parent05f17943bbb590ccc3f475a9c6d9b97fcb7b9eae (diff)
Notes
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c4
-rw-r--r--sys/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
index 969917175f1a..39358e999151 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
@@ -84,13 +84,13 @@ vdev_geom_orphan(struct g_consumer *cp)
ZFS_LOG(1, "Closing access to %s.", cp->provider->name);
g_access(cp, -cp->acr, -cp->acw, -cp->ace);
- g_detach(cp);
ZFS_LOG(1, "Destroyed consumer to %s.", cp->provider->name);
+ g_detach(cp);
g_destroy_consumer(cp);
/* Destroy geom if there are no consumers left. */
if (LIST_EMPTY(&gp->consumer)) {
ZFS_LOG(1, "Destroyed geom %s.", gp->name);
- g_wither_geom(cp->geom, error);
+ g_wither_geom(gp, error);
}
vdev_geom_release(vd);
/* Both methods below work, but in a bit different way. */
diff --git a/sys/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c b/sys/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
index 969917175f1a..39358e999151 100644
--- a/sys/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
+++ b/sys/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
@@ -84,13 +84,13 @@ vdev_geom_orphan(struct g_consumer *cp)
ZFS_LOG(1, "Closing access to %s.", cp->provider->name);
g_access(cp, -cp->acr, -cp->acw, -cp->ace);
- g_detach(cp);
ZFS_LOG(1, "Destroyed consumer to %s.", cp->provider->name);
+ g_detach(cp);
g_destroy_consumer(cp);
/* Destroy geom if there are no consumers left. */
if (LIST_EMPTY(&gp->consumer)) {
ZFS_LOG(1, "Destroyed geom %s.", gp->name);
- g_wither_geom(cp->geom, error);
+ g_wither_geom(gp, error);
}
vdev_geom_release(vd);
/* Both methods below work, but in a bit different way. */