diff options
author | pjd <pjd@FreeBSD.org> | 2007-03-31 22:44:45 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-03-31 22:44:45 +0000 |
commit | 969ba6629956a31607022caa91f0ffa3e7cc15bb (patch) | |
tree | efff4f4129fe20149a238a3dae3801e8d1231845 /sys | |
parent | 2232891f0b725e5df3a164491ff84b0bd0660640 (diff) | |
download | FreeBSD-src-969ba6629956a31607022caa91f0ffa3e7cc15bb.zip FreeBSD-src-969ba6629956a31607022caa91f0ffa3e7cc15bb.tar.gz |
Make vfs_mount_destroy() and vfs_freeopts() non-static, I'd like to use them.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_mount.c | 5 | ||||
-rw-r--r-- | 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 *); |