From 969ba6629956a31607022caa91f0ffa3e7cc15bb Mon Sep 17 00:00:00 2001 From: pjd Date: Sat, 31 Mar 2007 22:44:45 +0000 Subject: Make vfs_mount_destroy() and vfs_freeopts() non-static, I'd like to use them. --- sys/kern/vfs_mount.c | 5 ++--- sys/sys/mount.h | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index cd567e8..fc44e6c 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -87,7 +87,6 @@ static int vfs_mountroot_try(const char *mountfrom); static int vfs_donmount(struct thread *td, int fsflags, struct uio *fsoptions); static void free_mntarg(struct mntarg *ma); -static void vfs_mount_destroy(struct mount *); static int vfs_getopt_pos(struct vfsoptlist *opts, const char *name); static int usermount = 0; @@ -185,7 +184,7 @@ vfs_freeopt(struct vfsoptlist *opts, struct vfsopt *opt) } /* Release all resources related to the mount options. */ -static void +void vfs_freeopts(struct vfsoptlist *opts) { struct vfsopt *opt; @@ -504,7 +503,7 @@ vfs_mount_alloc(struct vnode *vp, struct vfsconf *vfsp, /* * Destroy the mount struct previously allocated by vfs_mount_alloc(). */ -static void +void vfs_mount_destroy(struct mount *mp) { int i; diff --git a/sys/sys/mount.h b/sys/sys/mount.h index 772d721..ec091d3 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -655,7 +655,9 @@ struct mntarg *mount_argf(struct mntarg *ma, const char *name, const char *fmt, struct mntarg *mount_argsu(struct mntarg *ma, const char *name, const void *val, int len); struct vfsconf *vfs_byname(const char *); struct vfsconf *vfs_byname_kld(const char *, struct thread *td, int *); +void vfs_mount_destroy(struct mount *); void vfs_event_signal(fsid_t *, u_int32_t, intptr_t); +void vfs_freeopts(struct vfsoptlist *opts); void vfs_deleteopt(struct vfsoptlist *opts, const char *name); int vfs_flagopt(struct vfsoptlist *opts, const char *name, u_int *w, u_int val); int vfs_getopt(struct vfsoptlist *, const char *, void **, int *); -- cgit v1.1