diff options
author | phk <phk@FreeBSD.org> | 2002-04-04 09:54:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-04 09:54:13 +0000 |
commit | fd177bc9595b9076f3b0010d5c8d15d431382251 (patch) | |
tree | c6baa9879fc1591197958488bdcaff9076c51439 /sys/geom/geom_slice.c | |
parent | 069aa8e324a61f68be3ba5e22bf5fff15ddf4f09 (diff) | |
download | FreeBSD-src-fd177bc9595b9076f3b0010d5c8d15d431382251.zip FreeBSD-src-fd177bc9595b9076f3b0010d5c8d15d431382251.tar.gz |
Move access and orphan member functions from class to geom.
Sponsored by: DARPA & NAI Labs
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r-- | sys/geom/geom_slice.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c index 2df1ed0..ad91ade 100644 --- a/sys/geom/geom_slice.c +++ b/sys/geom/geom_slice.c @@ -60,6 +60,10 @@ #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; + struct g_slicer * g_slice_init(unsigned nslice, unsigned scsize) { @@ -72,7 +76,7 @@ g_slice_init(unsigned nslice, unsigned scsize) return (gsp); } -int +static int g_slice_access(struct g_provider *pp, int dr, int dw, int de) { int error, i; @@ -114,7 +118,7 @@ g_slice_access(struct g_provider *pp, int dr, int dw, int de) return (error); } -void +static void g_slice_start(struct bio *bp) { struct bio *bp2; @@ -226,6 +230,8 @@ g_slice_new(struct g_class *mp, int slices, struct g_provider *pp, struct g_cons gp = g_new_geomf(mp, "%s", pp->name); gsp = g_slice_init(slices, extra); gsp->start = start; + gp->access = g_slice_access; + gp->orphan = g_slice_orphan; gp->softc = gsp; gp->start = g_slice_start; gp->spoiled = g_std_spoiled; @@ -246,7 +252,7 @@ g_slice_new(struct g_class *mp, int slices, struct g_provider *pp, struct g_cons return (gp); } -void +static void g_slice_orphan(struct g_consumer *cp) { struct g_geom *gp; |