summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-02-18 11:21:17 +0000
committerpjd <pjd@FreeBSD.org>2006-02-18 11:21:17 +0000
commitc2f8ebb2b6871184d7c8c87c8aac1de88017b04a (patch)
tree1e6e26270e165a2890cda370ae0ab947328eec71
parent55a384575ff2b5988a6f6b74a41333f91eddf6b5 (diff)
downloadFreeBSD-src-c2f8ebb2b6871184d7c8c87c8aac1de88017b04a.zip
FreeBSD-src-c2f8ebb2b6871184d7c8c87c8aac1de88017b04a.tar.gz
Allow to use g_slice_orphan() from outside.
MFC after: 3 days
-rw-r--r--sys/geom/geom_slice.c3
-rw-r--r--sys/geom/geom_slice.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index e618430..97b58f5 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -52,7 +52,6 @@ __FBSDID("$FreeBSD$");
#include <geom/geom_slice.h>
#include <machine/stdarg.h>
-static g_orphan_t g_slice_orphan;
static g_access_t g_slice_access;
static g_start_t g_slice_start;
@@ -484,7 +483,7 @@ g_slice_new(struct g_class *mp, u_int slices, struct g_provider *pp, struct g_co
return (gp);
}
-static void
+void
g_slice_orphan(struct g_consumer *cp)
{
diff --git a/sys/geom/geom_slice.h b/sys/geom/geom_slice.h
index 4003c8f..cb7fbab 100644
--- a/sys/geom/geom_slice.h
+++ b/sys/geom/geom_slice.h
@@ -71,6 +71,7 @@ struct g_slicer {
g_dumpconf_t g_slice_dumpconf;
int g_slice_config(struct g_geom *gp, u_int idx, int how, off_t offset, off_t length, u_int sectorsize, const char *fmt, ...);
void g_slice_spoiled(struct g_consumer *cp);
+void g_slice_orphan(struct g_consumer *cp);
#define G_SLICE_CONFIG_CHECK 0
#define G_SLICE_CONFIG_SET 1
#define G_SLICE_CONFIG_FORCE 2
OpenPOWER on IntegriCloud