mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Allow to use g_slice_orphan() from outside.
MFC after: 3 days
This commit is contained in:
parent
c058f51257
commit
bdf2e45a5c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155802
@ -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…
Reference in New Issue
Block a user