Make vfs_mount_destroy() and vfs_freeopts() non-static, I'd like to use them.

This commit is contained in:
pjd 2007-03-31 22:44:45 +00:00
parent 2232891f0b
commit 969ba66299
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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 *);