Allow to use g_slice_orphan() from outside.
MFC after: 3 days
This commit is contained in:
parent
55a384575f
commit
c2f8ebb2b6
@ -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)
|
||||
{
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user