diff options
author | phk <phk@FreeBSD.org> | 2005-01-25 15:52:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-01-25 15:52:04 +0000 |
commit | bb8d78bf443578181578e93ae89f4ba87be62f46 (patch) | |
tree | 006765566c899c6067ab86bc60e6a5ab9f93446c /sys/geom/geom_vfs.c | |
parent | 5aa1777f1d2fef4a08ca34c95cd1e5130a0fe4ee (diff) | |
download | FreeBSD-src-bb8d78bf443578181578e93ae89f4ba87be62f46.zip FreeBSD-src-bb8d78bf443578181578e93ae89f4ba87be62f46.tar.gz |
Introduce and use g_vfs_close().
Diffstat (limited to 'sys/geom/geom_vfs.c')
-rw-r--r-- | sys/geom/geom_vfs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/geom/geom_vfs.c b/sys/geom/geom_vfs.c index 9582513..2e8ae34 100644 --- a/sys/geom/geom_vfs.c +++ b/sys/geom/geom_vfs.c @@ -150,3 +150,14 @@ g_vfs_open(struct vnode *vp, struct g_consumer **cpp, const char *fsname, int wr return (error); } + +void +g_vfs_close(struct g_consumer *cp, struct thread *td) +{ + struct g_geom *gp; + + g_topology_assert(); + + gp = cp->geom; + g_wither_geom_close(gp, ENXIO); +} |